mirror of
https://github.com/NLnetLabs/domain.git
synced 2026-09-21 09:17:47 +02:00
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.
27 lines
830 B
YAML
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
|
|
|