This repository was archived by the owner on Oct 29, 2025. It is now read-only.
Modularize code #90
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Lint | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: null | |
| jobs: | |
| fix-lint-issues: | |
| name: Fix Lint Issues | |
| permissions: | |
| contents: write | |
| statuses: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Run Prettier | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "latest" | |
| - run: | | |
| npm install -g prettier | |
| prettier --write . | |
| - name: Super-linter | |
| uses: super-linter/super-linter/slim@v8 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| VALIDATE_ALL_CODEBASE: false | |
| FILTER_REGEX_EXCLUDE: "(.devcontainer/Dockerfile|.github/pull_request_template.md|.github/ISSUE_TEMPLATE/*.md|.github/workflows/*.(yml|yaml))" | |
| # Disable problematic validators | |
| VALIDATE_BIOME_FORMAT: false | |
| VALIDATE_DOCKERFILE_HADOLINT: false | |
| VALIDATE_GIT_COMMITLINT: false | |
| VALIDATE_GITHUB_ACTIONS_ZIZMOR: false | |
| # Enable fixers for PR events | |
| FIX_JSON: true | |
| FIX_JSON_PRETTIER: true | |
| FIX_MARKDOWN: true | |
| FIX_MARKDOWN_PRETTIER: true | |
| FIX_NATURAL_LANGUAGE: ${{ github.event_name == 'pull_request' }} | |
| FIX_RUST_CLIPPY: ${{ github.event_name == 'pull_request' }} | |
| # Custom options for linters | |
| RUST_CLIPPY_COMMAND_OPTIONS: "--config max_width=160" | |
| - name: Commit and push fixes | |
| if: github.event_name == 'pull_request' && github.event.pull_request.head.ref != github.event.repository.default_branch | |
| uses: stefanzweifel/git-auto-commit-action@v7 | |
| with: | |
| branch: ${{ github.event.pull_request.head.ref }} | |
| commit_message: "Super-Linter: Fix linting issues" | |
| commit_user_name: super-linter | |
| commit_user_email: super-linter@super-linter.dev |