add new CI workflow

This commit is contained in:
Jorge Aparicio 2024-05-29 15:54:56 +02:00
parent f581eb0483
commit 74a3d69eea
2 changed files with 46 additions and 0 deletions

42
.github/workflows/conformance.yml vendored Normal file
View File

@ -0,0 +1,42 @@
name: conformance
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
everything:
# host is irrelevant because everything will run in Docker containers
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: clippy, rustfmt
- uses: extractions/setup-just@v2
- name: run test-framework tests
run: just conformance-framework
- name: run conformance tests against unbound
run: just conformance-unbound
- name: run conformance tests against BIND
run: just conformance-bind
- name: run conformance tests against hickory-dns
run: just conformance-hickory
- name: check that all the tests that now pass with hickory-dns are not marked as `#[ignore]`-d
run: just conformance-ignored
- name: lint code
run: just conformance-clippy
- name: check that code is formatted
run: just conformance-fmt

View File

@ -6,10 +6,14 @@ on:
- main
- release/**
- "*_dev"
paths-ignore:
- "conformance/**"
pull_request:
branches:
- main
- release/**
paths-ignore:
- "conformance/**"
schedule:
- cron: "0 3 * * 4"