-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (39 loc) · 1.06 KB
/
lint-and-test.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
name: 🧪 Lint and Test
on:
push:
branches-ignore: [wip/**]
jobs:
test:
runs-on: ubuntu-latest
container: pgxn/pgxn-tools
strategy:
matrix:
pg: [11, 12, 13, 14, 15, 16]
name: 🐘 Postgres ${{ matrix.pg }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Start PostgreSQL ${{ matrix.pg }}
run: pg-start ${{ matrix.pg }}
- name: Setup Rust Cache
uses: Swatinem/rust-cache@v2
- name: Test on PostgreSQL ${{ matrix.pg }}
run: pgrx-build-test
lint:
name: ✅ Lint and Cover
runs-on: ubuntu-latest
container: pgxn/pgxn-tools
env: { PGVERSION: 16 }
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Start PostgreSQL ${{ env.PGVERSION }}
run: pg-start ${{ env.PGVERSION }} libxml2-utils
- name: Setup Rust Cache
uses: Swatinem/rust-cache@v2
- name: Install pgrx
run: make install-pgrx
- name: Initialize pgrx
run: make pgrx-init
- name: Format and Lint
run: make lint