Skip to content

Restructure

Restructure #5

Workflow file for this run

---
name: Lint
on: pull_request
permissions:
contents: read
pull-requests: write
jobs:
derivates:
name: Lookup derivates
runs-on: ubuntu-22.04
outputs:
matrix: ${{ env.derivates }}
steps:
- uses: actions/checkout@v4
- name: Lookup derivates
run: echo "derivates=$(make _derivates)" >> "$GITHUB_ENV"
markdown:
name: markdown
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Run markdownlint
uses: DavidAnson/markdownlint-cli2-action@v16
base_dockerfile:
name: dockerfile
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Run hadolint
uses: hadolint/[email protected]
with:
trusted-registries: docker.io,ghcr.io
dockerfile:
name: dockerfile
runs-on: ubuntu-22.04
needs: derivates
strategy:
fail-fast: false
matrix:
derivate: ${{ fromJSON(needs.derivates.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
- name: Run hadolint (${{ matrix.derivate }})
uses: hadolint/[email protected]
with:
dockerfile: ${{ matrix.derivate }}.dockerfile
trusted-registries: docker.io,ghcr.io
shell-scripts:
name: shell scripts
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Run ShellCheck
uses: luizm/action-sh-checker@master
yaml:
name: yaml
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Run Yamllint
uses: frenck/[email protected]