Refactor Dockerfile to run flatten script for SQL file processing out… #101
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: null | |
| permissions: | |
| contents: write | |
| statuses: write | |
| jobs: | |
| build: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: read | |
| statuses: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Super-linter | |
| uses: super-linter/super-linter/slim@v7 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| VALIDATE_ALL_CODEBASE: false | |
| FILTER_REGEX_EXCLUDE: '(.devcontainer/Dockerfile|.github/pull_request_template.md|.github/ISSUE_TEMPLATE/*.md)' | |
| fix-lint: | |
| name: Fix Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Super-linter | |
| uses: super-linter/super-linter/slim@v7 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| VALIDATE_ALL_CODEBASE: false | |
| FILTER_REGEX_EXCLUDE: '(.github/pull_request_template.md|.github/ISSUE_TEMPLATE/*.md)' | |
| FIX_JSON_PRETTIER: true | |
| FIX_MARKDOWN: true | |
| FIX_MARKDOWN_PRETTIER: true | |
| FIX_SHELL_SHFMT: true | |
| FIX_SQLFLUFF: true | |
| FIX_YAML_PRETTIER: true | |
| VALIDATE_DOCKERFILE_HADOLINT: false | |
| - name: Commit and push linting fixes | |
| if: > | |
| github.event_name == 'pull_request' && | |
| github.event.pull_request.head.ref != github.event.repository.default_branch | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| branch: ${{ github.event.pull_request.head.ref }} | |
| commit_message: 'chore: fix linting issues' | |
| commit_user_name: super-linter | |
| commit_user_email: super-linter@super-linter.dev |