Add github actions workflow for CI tests
This commit is contained in:
parent
30532bbfca
commit
28796695af
2 changed files with 18 additions and 0 deletions
17
.github/workflows/test.yml
vendored
Normal file
17
.github/workflows/test.yml
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
name: "Test"
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
schedule:
|
||||||
|
- cron: '42 7 * * *'
|
||||||
|
jobs:
|
||||||
|
tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Install Nix
|
||||||
|
uses: cachix/install-nix-action@v30
|
||||||
|
- name: Execute unit tests
|
||||||
|
run: nix flake check
|
||||||
|
|
@ -59,6 +59,7 @@
|
||||||
|
|
||||||
treefmt = {
|
treefmt = {
|
||||||
programs = {
|
programs = {
|
||||||
|
actionlint.enable = true;
|
||||||
alejandra.enable = true;
|
alejandra.enable = true;
|
||||||
};
|
};
|
||||||
settings.global.excludes = [
|
settings.global.excludes = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue