mirror of
https://github.com/NLnetLabs/rtrtr.git
synced 2024-05-11 05:55:07 +00:00
31 lines
690 B
YAML
31 lines
690 B
YAML
![]() |
name: ci
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- main
|
||
|
pull_request:
|
||
|
branches:
|
||
|
- main
|
||
|
jobs:
|
||
|
test:
|
||
|
name: test
|
||
|
runs-on: ${{ matrix.os }}
|
||
|
strategy:
|
||
|
matrix:
|
||
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
||
|
rust: [1.42.0, stable, beta, nightly]
|
||
|
steps:
|
||
|
- name: Checkout repository
|
||
|
uses: actions/checkout@v1
|
||
|
- name: Install Rust
|
||
|
uses: hecrj/setup-rust-action@v1
|
||
|
with:
|
||
|
rust-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
|
||
|
|