1
0
mirror of https://github.com/NLnetLabs/routinator.git synced 2024-05-19 06:50:04 +00:00

Add a Github Actions workflow.

This commit is contained in:
Martin Hoffmann
2019-09-17 13:46:01 +02:00
parent 57043ccf57
commit 4b8ebf1bcd

24
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: ci
on: [push, pull_request]
jobs:
test:
name: test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust: [1.34.0, stable, beta, nightly]
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Install Rust
uses: hecrj/setup-rust-action@v1
with:
reust-version: ${{ matrix.rust }}
- if: matrix.rust != 'nightly'
run: rustup component add clippy
- if: matrix.rust != 'nightly'
run: cargo clippy -- -D warnings
- run: cargo build --verbose
- run: cargo test --verbose