Skip to content

Commit

Permalink
ci: setup basic continuous integration
Browse files Browse the repository at this point in the history
This currently just checks formatting and runs the test-suite, but we
have enough tests now that is useful to start.
  • Loading branch information
nrdxp committed Oct 11, 2024
1 parent a1c2075 commit ff03e98
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI

on:
pull_request:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: nixbuild/nix-quick-install-action@v28
- name: Setup Cache
uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Enter Devshell
run: . <(nix print-dev-env "$(nix-instantiate shell.nix)"
- name: Check Format
run: treefmt --ci
- name: Run Tests
run: cargo test --all

0 comments on commit ff03e98

Please sign in to comment.