Skip to content

Commit

Permalink
add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
PgBiel committed Apr 26, 2024
1 parent a3669cd commit 1cc8c99
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: test

on:
push:
branches:
- master
- main
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: cachix/install-nix-action@v26
- uses: DeterminateSystems/magic-nix-cache-action@v4
- name: Ensure flake.lock was committed
run: ls flake.lock
- run: nix flake check -L
- run: nix build -L
- run: glistix deps download
shell: nix develop --command bash -e {0}
- run: glistix test
shell: nix develop --command bash -e {0}
- run: glistix format --check src test
shell: nix develop --command bash -e {0}

0 comments on commit 1cc8c99

Please sign in to comment.