Skip to content

test ci

test ci #2

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
CARGO_TERM_COLOR: always
jobs:
linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.82.0
components: rustfmt, clippy
override: true
- name: rustfmt
run: cargo fmt -- --check
- name: clippy
run: cargo clippy --all-features --all-targets -- -D warnings
tests:
needs: linter
strategy:
matrix:
toolchain:
- 1.75
- nightly
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
profile: minimal
# - name: dependencies
# if: runner.os == 'Linux'
# run: sudo apt-get update && sudo apt-get install -y libevent-dev
- name: tests
run: cargo test --verbose --color always -- --nocapture
build:
needs: tests
strategy:
matrix:
toolchain:
- 1.75
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
profile: minimal
# - name: dependencies
# if: runner.os == 'Linux'
# run: sudo apt-get update && sudo apt-get install -y libevent-dev
- name: tests
run: cargo build --verbose --color always -- --nocapture