Skip to content

Commit

Permalink
set up ci
Browse files Browse the repository at this point in the history
  • Loading branch information
azuline committed Oct 9, 2023
1 parent 38ebe12 commit a4d0123
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: build
on: push
jobs:
check:
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- uses: cachix/cachix-action@v12
with:
name: rose
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build Nix
run: nix build -j8 .#devShells.x86_64-linux.default
- name: Typecheck
if: success() || failure() # Means that we run all steps even if one fails.
run: nix develop --command make typecheck
- name: Test
if: success() || failure()
run: nix develop --command make test
- name: Lint
if: success() || failure()
run: nix develop --command make lintcheck
2 changes: 2 additions & 0 deletions rose/hello_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_hello():
assert 1 == 1

0 comments on commit a4d0123

Please sign in to comment.