Merge pull request #15 from hoodie/feature/update-syn #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
# limit ci building to pushes to master not to get twice the notification email | |
# from github. | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
branches: '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install rust toolchain | |
uses: hecrj/[email protected] | |
with: | |
rust-version: stable | |
components: clippy, rustfmt | |
- name: Cache | |
uses: Swatinem/rust-cache@v1 | |
- name: Build | |
run: cargo build --all-features --all-targets | |
- name: Cargo fmt | |
run: cargo fmt --all -- --check | |
- name: Cargo clippy | |
run: cargo clippy --all-targets --all-features -- -D warnings | |
- name: Test | |
run: timeout 15m cargo test --all --all-features |