Skip to content

Ci fixes

Ci fixes #105

Workflow file for this run

# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
on: [push, pull_request]
name: Build & Test
jobs:
check:
name: Check
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
- 1.58.0 # MSRV
include:
- rust: nightly
experimental: true
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
test:
name: Test Suite
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
- 1.58.0 # MSRV
include:
- rust: nightly
experimental: true
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
- name: Run cargo test (test-mock features)
uses: actions-rs/cargo@v1
with:
command: test
args: --features test-mock
test-net-private:
name: Test Suite (network-enabled tests)
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
- 1.58.0 # MSRV
include:
- rust: nightly
experimental: true
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Run cargo test (test-net-private)
run: cargo test --features test-net,test-net-private
env:
DKREG_QUAY_USER: ${{ secrets.DKREG_QUAY_USER }}
DKREG_QUAY_PASSWD: ${{ secrets.DKREG_QUAY_PASSWD }}
lints:
name: Lints
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
- 1.58.0 # MSRV
include:
- rust: nightly
experimental: true
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings