Make Kubernetes More Robust #311
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |