Skip to content

Working commit

Working commit #111

Workflow file for this run

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