name: CI
on:
pull_request:
branches:
- master
- alpha
- beta
env:
RUST_BACKTRACE: 1
jobs:
test:
name: Test ${{ matrix.rust }}
strategy:
matrix:
rust:
- stable
- beta
- nightly
- 1.61.0
runs-on: ubuntu-latest
if: github.actor != 'sbosnick-bot'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust (${{ matrix.rust }})
uses: actions-rs/toolchain@v1
with:
profile: default
toolchain: ${{ matrix.rust }}
override: true
- name: Check Format
if: matrix.rust == 'stable'
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- name: Clippy
if: matrix.rust == 'stable'
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Check net-fd
uses: actions-rs/cargo@v1
with:
command: check
args: --features net-fd
- name: Check mio-fd
uses: actions-rs/cargo@v1
with:
command: check
args: --features mio-fd
- name: Check tokio-fd
uses: actions-rs/cargo@v1
with:
command: check
args: --features tokio-fd
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features