mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2026-03-09 13:30:20 +00:00
add(workflow): create check workflow for linting and building
This commit is contained in:
parent
8cee7b95fa
commit
7a621d4731
1 changed files with 45 additions and 0 deletions
45
.github/workflows/check.yml
vendored
Normal file
45
.github/workflows/check.yml
vendored
Normal file
|
|
@ -0,0 +1,45 @@
|
||||||
|
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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue