nixos/.github/workflows/actions-check.yaml

34 lines
860 B
YAML

name: Check actions
on:
push:
paths:
- .github/workflows/*.yaml
- .github/workflows/*.yml
pull_request:
paths:
- .github/workflows/*.yaml
- .github/workflows/*.yml
jobs:
check-actions-actionlint:
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:runner-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v5
with:
go-version: '1.23'
- run: |
go install github.com/rhysd/actionlint/cmd/actionlint@latest
actionlint .github/workflows/*.yaml
check-actions-yamllint:
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:runner-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
- run: |
pipx run yamllint .github/workflows/*.yaml