mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2026-03-09 05:20:21 +00:00
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
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: Install Nix
|
|
uses: cachix/install-nix-action@v31
|
|
with:
|
|
extra_nix_config: |
|
|
experimental-features = nix-command flakes
|
|
|
|
- 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: Install Nix
|
|
uses: cachix/install-nix-action@v31
|
|
with:
|
|
extra_nix_config: |
|
|
experimental-features = nix-command flakes
|
|
|
|
- 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
|