mirror of
https://github.com/NLnetLabs/domain.git
synced 2026-09-24 02:34:56 +02:00
30 lines
795 B
YAML
30 lines
795 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.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 --all-features -- -D warnings
|
|
- run: cargo build --all-features --verbose
|
|
- run: |
|
|
cd domain
|
|
cargo test --features "master sign tsig validate" --verbose
|
|
- run: |
|
|
cd domain-resolv
|
|
cargo test --verbose
|
|
|