-
Notifications
You must be signed in to change notification settings - Fork 31
35 lines (31 loc) · 948 Bytes
/
backend.yaml
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
# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
on:
pull_request:
paths:
- 'actix-api/**'
- 'types/**'
- Dockerfile.actix
name: check backend
env:
ACTIX_PORT: 8080
TRUNK_SERVE_PORT: 80
TRUNK_SERVE_HOST: localhost
OAUTH_CLIENT_ID: OAUTH_CLIENT_ID
OAUTH_AUTH_URL: OAUTH_AUTH_URL
OAUTH_TOKEN_URL: OAUTH_TOKEN_URL
OAUTH_CLIENT_SECRET: OAUTH_CLIENT_SECRET
OAUTH_REDIRECT_URL: http://localhost:${ACTIX_PORT:-8080}/login/callback
RUST_LOG: info
PG_URL: postgres://postgres:docker@postgres:5432/actix-api-db?sslmode=disable
jobs:
test:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@1.66
with:
components: clippy, rustfmt
- run: cd actix-api && cargo clippy -- --deny warnings
- run: cd actix-api && cargo fmt --check
- run: cd actix-api && cargo test