Merge pull request #130 from lumaxis/dependabot/github_actions/action… #210
This file contains 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: "Test shellcheck problem matchers" | |
on: | |
pull_request: | |
push: | |
branches: [ main ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/setup-node@v4 | |
- run: npm ci | |
- run: npm run lint | |
test-all-formats: | |
name: All formats | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Use local version of Action | |
uses: ./ | |
# Run shellcheck and expect it to fail wit exit code 1 | |
- name: Run shellcheck | |
run: shellcheck test/fixtures/*.sh; [[ $? == 1 ]]; exit $? | |
shell: bash {0} | |
test-specific-format: | |
name: Specific format | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
format: [ gcc, tty ] | |
steps: | |
- uses: actions/[email protected] | |
- name: Use local version of Action | |
uses: ./ | |
with: | |
format: ${{ matrix.format }} | |
# Run shellcheck and expect it to fail wit exit code 1 | |
- name: Run shellcheck | |
run: shellcheck -f ${{ matrix.format }} test/fixtures/*.sh; [[ $? == 1 ]]; exit $? | |
shell: bash {0} |