Skip to content

Pin dependencies in CI #13

Pin dependencies in CI

Pin dependencies in CI #13

Workflow file for this run

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 unicode-segmentation
run: cargo update -p unicode-segmentation --precise 1.7.1
- name: Pin proc-macro2
run: cargo update -p proc-macro2 --precise 1.0.27
- name: Build
run: cargo build --verbose
- name: Run unit tests
run: cargo +stable test --verbose
- name: Clippy
run: cargo +stable clippy -- -D clippy::all