dmx-interface/.github/workflows/check.yml
HendrikRauh 198c835c50 fix(workflow): checkout before local action and remove nested checkout
Add top-level `actions/checkout` to jobs so local action files are available, and remove redundant checkout from `install-nix` composite action. Prewarm flake devShell remains in the action.
2026-03-06 14:49:23 +01:00

39 lines
903 B
YAML

name: check
"on":
workflow_dispatch: {}
push:
branches: ["main"]
pull_request:
branches: ["**"]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup checkout + Nix
uses: ./.github/actions/install-nix
- name: Run pre-commit from flake devShell
run: |
# use the flake devShell defined in ./flake.nix (x86_64 runner)
nix develop --command pre-commit run --all-files
shell: bash
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup checkout + Nix
uses: ./.github/actions/install-nix
- name: Run build from flake devShell
run: |
# use the flake devShell defined in ./flake.nix (x86_64 runner)
nix develop --command invoke build
shell: bash