Pin dependencies in CI #16
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: Rust | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Update Rustup | |
run: rustup self update | |
- uses: actions/checkout@v2 | |
- name: Setup rust-toolchain | |
# This looks retarded but it's correct | |
# see https://github.com/rust-lang/rustup/issues/2070#issuecomment-545096849 | |
run: rustup show | |
- name: Pin thiserror | |
run: cargo update -p thiserror --precise 1.0.25 | |
- name: Pin serde | |
run: cargo update -p serde --precise 1.0.126 | |
- name: Pin serde_derive | |
run: cargo update -p serde_derive --precise 1.0.136 | |
- name: Pin quote | |
run: cargo update -p quote --precise 1.0.9 | |
- name: Pin syn | |
run: cargo update -p syn --precise 1.0.72 | |
- name: Pin proc-macro2 | |
run: cargo update -p proc-macro2 --precise 1.0.27 | |
- name: Pin unicode-segmentation | |
run: cargo update -p unicode-segmentation --precise 1.7.1 | |
- name: Build | |
run: cargo build --verbose | |
- name: Run unit tests | |
run: cargo +stable test --verbose | |
- name: Clippy | |
run: cargo +stable clippy -- -D clippy::all |