-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (46 loc) · 982 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: CI
on:
pull_request:
branches:
- main
paths-ignore:
- '*.md'
push:
branches:
- main
paths-ignore:
- '*.md'
release:
types:
- created
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
PG_VERSION: [pg14, pg15, pg16, pg17]
env:
PG_VERSION: ${{ matrix.PG_VERSION }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Rust Toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.82.0
components: clippy, rustfmt
- name: Cache Rust
uses: Swatinem/rust-cache@v2
- name: Cache pgrx
uses: actions/cache@v4
with:
path: |
~/.pgrx/
key: ${{ runner.os }}-${{ matrix.PG_VERSION }}-pgrx
- name: Init
run: make init
- name: Lint
run: make lint
- name: Test
run: make test