feat(ci): Add check and update workflows
This commit is contained in:
parent
9d4c9e2f87
commit
8f57fe1466
2 changed files with 121 additions and 0 deletions
37
.forgejo/workflows/check.yml
Normal file
37
.forgejo/workflows/check.yml
Normal file
|
@ -0,0 +1,37 @@
|
|||
name: Perform checks
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
formatting:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install nix
|
||||
uses: https://github.com/DeterminateSystems/nix-installer-action@main
|
||||
- name: Setup Action cache for nix
|
||||
uses: https://github.com/DeterminateSystems/magic-nix-cache-action@main
|
||||
with:
|
||||
fail-mode: true
|
||||
- name: Check Nix flake inputs
|
||||
uses: https://github.com/DeterminateSystems/flake-checker-action@v4 # This action
|
||||
- name: Run nix fmt
|
||||
run: nix fmt -- --check .
|
||||
|
||||
nix_flake_check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install nix
|
||||
uses: https://github.com/DeterminateSystems/nix-installer-action@main
|
||||
- name: Setup Action cache for nix
|
||||
uses: https://github.com/DeterminateSystems/magic-nix-cache-action@main
|
||||
with:
|
||||
fail-mode: true
|
||||
- name: Check Nix flake inputs
|
||||
uses: https://github.com/DeterminateSystems/flake-checker-action@v4 # This action
|
||||
- name: Run nix flake check
|
||||
run: nix flake check
|
Loading…
Add table
Add a link
Reference in a new issue