Skip to content

build(deps): update syn requirement from 1.0.17 to 2.0.18 #30

build(deps): update syn requirement from 1.0.17 to 2.0.18

build(deps): update syn requirement from 1.0.17 to 2.0.18 #30

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- master
jobs:
build_and_test:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
rust: [nightly, beta, stable]
steps:
- uses: actions/checkout@master
- name: Cache cargo registry
uses: actions/cache@v1
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-${{ runner.rust }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }}
- name: Cache cargo index
uses: actions/cache@v1
with:
path: ~/.cargo/git
key: ${{ runner.os }}-${{ runner.rust }}-cargo-index-${{ hashFiles('**/Cargo.toml') }}
- name: Cache cargo build
uses: actions/cache@v1
with:
path: target
key: ${{ runner.os }}-${{ runner.rust }}-cargo-build-target-${{ hashFiles('**/Cargo.toml') }}
- name: build
run: cargo build
- name: tests
run: cargo test --all
check_fmt_and_docs:
name: Checking fmt and docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: setup
run: |
rustup component add rustfmt
rustc --version
- name: fmt
run: cargo fmt --all -- --check
- name: Docs
run: cargo doc