Skip to content

Merge pull request #130 from lumaxis/dependabot/github_actions/action… #210

Merge pull request #130 from lumaxis/dependabot/github_actions/action…

Merge pull request #130 from lumaxis/dependabot/github_actions/action… #210

Workflow file for this run

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}