feat: make a more comprehensive test for paperless #223
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 checks | |
on: | |
push: | |
jobs: | |
build: | |
permissions: | |
contents: read | |
packages: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build devcontainer image | |
uses: devcontainers/ci@8bf61b26e9c3a98f69cb6ce2f88d24ff59b785c6 #0.3.1900000417 | |
with: | |
cacheFrom: ghcr.io/marinatedconcrete/config-devcontainer | |
env: | | |
CI=1 | |
imageName: ghcr.io/marinatedconcrete/config-devcontainer | |
push: filter | |
refFilterForPush: refs/heads/main | |
check-format: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Check formatting | |
uses: devcontainers/ci@8bf61b26e9c3a98f69cb6ce2f88d24ff59b785c6 #0.3.1900000417 | |
with: | |
cacheFrom: ghcr.io/marinatedconcrete/config-devcontainer | |
env: | | |
CI=1 | |
imageName: ghcr.io/marinatedconcrete/config-devcontainer | |
push: never | |
runCmd: just check-format | |
kustomization-test: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Validate configs | |
uses: devcontainers/ci@8bf61b26e9c3a98f69cb6ce2f88d24ff59b785c6 #0.3.1900000417 | |
with: | |
cacheFrom: ghcr.io/marinatedconcrete/config-devcontainer | |
env: | | |
CI=1 | |
imageName: ghcr.io/marinatedconcrete/config-devcontainer | |
push: never | |
runCmd: just kustomization-test ${{ matrix.kustomization-test }} | |
strategy: | |
matrix: | |
kustomization-test: | |
- factorio | |
- kube-vip | |
- mosquitto | |
- paperless | |
- priorityclass | |
- unifi-network-application | |
lint: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Validate configs | |
uses: devcontainers/ci@8bf61b26e9c3a98f69cb6ce2f88d24ff59b785c6 #0.3.1900000417 | |
with: | |
cacheFrom: ghcr.io/marinatedconcrete/config-devcontainer | |
env: | | |
CI=1 | |
imageName: ghcr.io/marinatedconcrete/config-devcontainer | |
push: never | |
runCmd: just lint |