dmx-interface/.github/workflows/check.yml

33 lines
787 B
YAML

name: check
"on":
workflow_dispatch: {}
push:
branches: ["main"]
pull_request:
branches: ["**"]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- 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: 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