-
Notifications
You must be signed in to change notification settings - Fork 15
54 lines (52 loc) · 1.49 KB
/
server-tests.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
on:
pull_request:
branches:
- main
- develop
paths:
- 'server/**'
workflow_dispatch:
name: CI
jobs:
build_and_test:
name: Remote Server Tests (sqlite)
runs-on: self-hosted
timeout-minutes: 25
env:
CARGO_TARGET_DIR: /tmp/target/sqlite
steps:
- name: Update PATH
run: echo "$HOME/.cargo/bin:/opt/homebrew/bin" >> $GITHUB_PATH
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: clean
args: -p repository -p graphql_types -p graphql_plugin --manifest-path server/Cargo.toml
- uses: actions-rs/cargo@v1
with:
command: test
args: --features=sqlite --manifest-path server/Cargo.toml
build_and_test_pg:
name: Remote Server Tests (postgres)
runs-on: self-hosted
timeout-minutes: 25
env:
CARGO_TARGET_DIR: /tmp/target/postgres
steps:
- name: Update PATH
run: echo "$HOME/.cargo/bin/:/opt/homebrew/bin" >> $GITHUB_PATH
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: clean
args: -p repository -p graphql_types -p graphql_plugin --manifest-path server/Cargo.toml
- uses: actions-rs/cargo@v1
with:
command: test
args: --features=postgres --manifest-path server/Cargo.toml