-
Notifications
You must be signed in to change notification settings - Fork 62
57 lines (45 loc) · 1.17 KB
/
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
55
56
57
name: CI
on:
workflow_dispatch:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
env:
RUSTFLAGS: --deny warnings
jobs:
ci:
name: CI
timeout-minutes: 10
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
env:
DB_CONNECTION_STRING: postgresql://postgres:postgres@localhost:5432/postgres
steps:
- name: 🏗 Setup repository
uses: actions/checkout@v3
with:
submodules: true
- name: 🏗 Setup monorepo
uses: ./.github/actions/setup-monorepo
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run test migrations
run: psql -f test-db/seed.sql postgresql://postgres:postgres@localhost:5432/postgres
- name: 📦 Build
id: build
run: cargo build
- name: ⚡️ Check
id: check
run: cargo check
- name: 🦺 Test
id: test
run: cargo test