Skip to content

Use maintained rust-toolchain instead of actions-rs #259

Use maintained rust-toolchain instead of actions-rs

Use maintained rust-toolchain instead of actions-rs #259

Workflow file for this run

on: [push, 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
- 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
- name: Run cargo test
run:
cargo test --manifest-path api-tests/Cargo.toml -- --test-threads=1