Skip to content

Run cargo fmt in CI #165

Run cargo fmt in CI

Run cargo fmt in CI #165

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- master
schedule:
- cron: "0 3 * * 4" # 4 = Thursday
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ hashFiles('.github/workflows/ci.yml', 'cast_checks/tests/ci.rs') }}
- name: Install tools
run: |
rustup install nightly
rustup component add rustfmt --toolchain nightly
cargo install cargo-license || true
cargo install cargo-sort || true
- name: Test
run: cargo test