Test CI #283
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: Run CI tests | |
on: | |
- push | |
- pull_request | |
jobs: | |
bats_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build the Docker image | |
run: docker build . --file Dockerfile --tag test-image | |
- name: Run tests | |
run: docker run --rm --name test-greenboot -v /run/systemd/journal:/run/systemd/journal test-image | |
shellcheck: | |
name: Shellcheck | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
security-events: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- id: ShellCheck | |
name: Differential ShellCheck | |
uses: redhat-plumbers-in-action/differential-shellcheck@v4 | |
with: | |
exclude-path: tests/** | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- if: ${{ always() }} | |
name: Upload artifact with ShellCheck defects in SARIF format | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Differential ShellCheck SARIF | |
path: ${{ steps.ShellCheck.outputs.sarif }} |