Skip to content

Merge pull request #129 from cgwalters/install-grub-config #195

Merge pull request #129 from cgwalters/install-grub-config

Merge pull request #129 from cgwalters/install-grub-config #195

Workflow file for this run

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 }}