tokio-rustls/.github/workflows/CI.yml

75 lines
1.5 KiB
YAML
Raw Normal View History

2020-01-09 23:36:35 +00:00
name: CI
on:
push:
branches:
- master
pull_request: {}
2020-01-09 23:36:35 +00:00
jobs:
check:
runs-on: ubuntu-latest
env:
RUSTFLAGS: "-D warnings"
steps:
- name: Checkout sources
uses: actions/checkout@v3
2020-01-09 23:36:35 +00:00
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
2020-01-09 23:39:13 +00:00
- name: Check
run: cargo check --all --all-features --all-targets
2020-01-09 23:36:35 +00:00
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
rust: [stable]
env:
RUSTFLAGS: "-D warnings"
steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
- uses: actions/checkout@v3
2020-01-09 23:36:35 +00:00
- name: Test
run: cargo test --all
2020-01-09 23:36:35 +00:00
lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
2020-01-09 23:36:35 +00:00
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
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: --all-features -- -D warnings