Skip to content

Commit b8cd045

Browse files
committed
ci: init github ci
1 parent 865bec1 commit b8cd045

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
pg-version: ['14', '15', '16', '17', '18']
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Install Nix
16+
uses: cachix/install-nix-action@v30
17+
with:
18+
nix_path: nixpkgs=channel:nixos-unstable
19+
20+
- name: Use Cachix Cache
21+
uses: cachix/cachix-action@v10
22+
with:
23+
name: nxpg
24+
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
25+
26+
- name: Run tests
27+
run: nix-shell --run "xpg -v ${{ matrix.pg-version }} test"
28+
29+
- if: ${{ failure() }}
30+
run: |
31+
cat regression.out
32+
cat regression.diffs

0 commit comments

Comments
 (0)