-
Notifications
You must be signed in to change notification settings - Fork 10
41 lines (33 loc) · 904 Bytes
/
api.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
on:
push:
branches:
- master
pull_request:
name: Build and test API
jobs:
unitTest:
name: API Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install latest stable
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rustflags: ""
- name: Run cargo test
run:
cargo test --manifest-path api/Cargo.toml
integrationTests:
name: API Integration Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Build Docker Image
run: docker build --pull -t aixigo/prevant .
- name: Install latest stable
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rustflags: ""
- name: Run cargo test
run:
cargo test --manifest-path api-tests/Cargo.toml -- --test-threads=1