-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (31 loc) · 1002 Bytes
/
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
permissions:
contents: read
on:
push:
branches: [master]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
name: test
jobs:
required:
name: ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install stable
uses: dtolnay/rust-toolchain@stable
- name: Setup environment
run: docker compose up -d
- name: Run migrations
run: cargo run -p migration
env:
DATABASE_URL: 'postgres://matverseny:[email protected]:5432/matverseny'
- name: cargo test --locked
run: cargo test --locked --all-features --workspace --all-targets
env:
IAM_URL: http://127.0.0.1:3001
IAM_APP_SECRET: QXBwSUQtNzAwNzk1N2QtN2Q5OC0xMWVlLTg4NTktNzY2NTY0MDAwMDAwOndhdDRUSGdwcEJJdWExa095Z3R5R3hpU3hpRkVSZFZ4
NATS_URL: 127.0.0.1
- name: cargo test --doc
run: cargo test --locked --all-features --workspace --doc