Files
NLnetLabs-domain/.github/workflows/ci.yml
T
Joonas Koivunen 5d47aa24fc ci: add stable cargo fmt check
run clippy only on ubuntu-latest as it doesn't seem to be installed on
windows. however all code is processed by rustfmt regardless of the
target.
2021-01-13 16:03:44 +02:00

27 lines
830 B
YAML

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.45.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 --all-features -- -D warnings
- if: matrix.rust == 'stable' && matrix.os == 'ubuntu-latest'
run: cargo fmt --all -- --check
- run: cargo build --no-default-features --verbose
- run: cargo test --features="master resolv resolv-sync sign tsig validate" --verbose