-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (44 loc) · 1.04 KB
/
push.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
name: Push
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust-version: [stable, beta, nightly]
services:
postgres:
image: postgres:16.3
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Rust
uses: moonrepo/setup-rust@v1
with:
channel: ${{ matrix.rust-version }}
bins: cargo-nextest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: cargo build --features diesel-uuid,serde
- name: Test
run: cargo nextest run --features diesel-uuid,serde
env:
PG_DATABASE_URL: postgres://postgres:postgres@localhost/postgres