basic ci #16
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: CI | |
| # ↓ lock down top‐level permissions to only what we use | |
| permissions: | |
| contents: read # we only need to checkout code | |
| actions: read # to query workflows/runs | |
| statuses: write | |
| # Run on pushes to any branch and pull requests | |
| on: | |
| push: | |
| branches: ['main'] | |
| pull_request: | |
| branches: ['**'] | |
| jobs: | |
| # Lint all YAML, JSON & Shell | |
| lint: | |
| name: Lint code & configs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Run Super-linter | |
| uses: github/super-linter@v7 | |
| # VALIDATE_MARKDOWN_PRETTIER: false | |
| # VALIDATE_YAML_PRETTIER: false | |
| env: | |
| # only lint the file types you care about | |
| VALIDATE_YAML: true | |
| VALIDATE_JSON: true | |
| VALIDATE_SHELL: true | |
| # BASH, BASH_EXEC CHECOV GITHUB_ACTIONS GITLEAKS JSON NATURAL_LANGUAGE SHELL_SHFMT MARKDOWN MARKDOWN_PRETTIER | |
| FILTER_REGEX_EXCLUDE: (^cardano-config/|LICENSE\.md) | |
| # tell it your default branch so it can diff | |
| DEFAULT_BRANCH: origin/main | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |