Skip to content

Commit 4dc2dd9

Browse files
committed
Add CI workflow to build and test
1 parent 66db72a commit 4dc2dd9

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Install Nix
19+
uses: cachix/install-nix-action@v25
20+
with:
21+
nix_path: nixpkgs=channel:nixos-unstable
22+
23+
- name: Setup Cachix
24+
uses: cachix/cachix-action@v14
25+
with:
26+
name: iohk
27+
28+
- name: Build
29+
run: nix build
30+
31+
test:
32+
needs: build
33+
runs-on: ubuntu-latest
34+
steps:
35+
- name: Checkout repository
36+
uses: actions/checkout@v4
37+
38+
- name: Install Nix
39+
uses: cachix/install-nix-action@v25
40+
with:
41+
nix_path: nixpkgs=channel:nixos-unstable
42+
43+
- name: Setup Cachix
44+
uses: cachix/cachix-action@v14
45+
with:
46+
name: iohk
47+
48+
- name: Test
49+
run: nix flake check

0 commit comments

Comments
 (0)