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

39 lines
963 B
YAML

name: check
"on":
workflow_dispatch: {}
push:
branches: ["main"]
pull_request:
branches: ["**"]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Install Nix and pre-warm flake devShell
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 repository
uses: actions/checkout@v5
- name: Install Nix and pre-warm flake devShell
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