Skip to content

Commit 0fb0b84

Browse files
committed
Add GitHub Actions CI
1 parent b3a4677 commit 0fb0b84

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: [ubuntu-latest, macos-latest, windows-latest]
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Setup Ruby
18+
uses: ruby/setup-ruby@v1
19+
with:
20+
ruby-version: '3.2'
21+
- name: Setup just
22+
uses: extractions/setup-just@v1
23+
- name: Run tests
24+
run: just test
25+
26+
nix:
27+
runs-on: ubuntu-latest
28+
container:
29+
image: nixos/nix:latest
30+
steps:
31+
- uses: actions/checkout@v4
32+
- name: Run tests via Nix
33+
run: nix develop -c just test

0 commit comments

Comments
 (0)