Merge pull request #1772 from gliderlabs/update-nodejs-from-v329-to-330 #1179
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" | |
| # yamllint disable-line rule:truthy | |
| on: | |
| pull_request: | |
| branches: | |
| - "*" | |
| push: | |
| branches: | |
| - "master" | |
| concurrency: | |
| group: lint-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| hadolint: | |
| name: hadolint | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Clone | |
| uses: actions/checkout@v6 | |
| - name: Run hadolint | |
| uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 | |
| with: | |
| config: .github/linters/.hadolint.yml | |
| markdown-lint: | |
| name: markdown-lint | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Clone | |
| uses: actions/checkout@v6 | |
| - name: Setup node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| cache-dependency-path: ".github/workflows/lint.yml" | |
| - name: Install markdownlint-cli | |
| run: npm install -g markdownlint-cli@0.35.0 | |
| - name: Run markdown-lint | |
| run: markdownlint -c .github/linters/.markdown-lint.yml *.md **/*.md | |
| shellcheck: | |
| name: shellcheck | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Clone | |
| uses: actions/checkout@v6 | |
| - name: Run shellcheck | |
| uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 | |
| with: | |
| ignore_paths: >- | |
| ./tests/unit/fixtures/.profile.d/app.sh | |
| shfmt: | |
| name: shfmt | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Clone | |
| uses: actions/checkout@v6 | |
| - name: Run shfmt | |
| uses: luizm/action-sh-checker@883217215b11c1fabbf00eb1a9a041f62d74c744 | |
| env: | |
| SHFMT_OPTS: -l -bn -ci -i 2 -d | |
| with: | |
| sh_checker_shellcheck_disable: true | |
| yamllint: | |
| name: yamllint | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Clone | |
| uses: actions/checkout@v6 | |
| - name: Run yamllint | |
| uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c | |
| with: | |
| config_file: ".github/linters/.yamllint.yml" |