forked from aixigo/PREvant
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 985 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
42
43
on: [push]
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-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --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-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path api-tests/Cargo.toml -- --test-threads=1