refactor: token #5
Workflow file for this run
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
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
defaults: | |
run: | |
working-directory: ./cierra | |
name: Test | |
jobs: | |
fmt: | |
name: Fmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout ποΈ | |
- uses: dtolnay/rust-toolchain@nightly | |
name: Setup Cargo Toolchain ποΈ | |
with: | |
components: rustfmt | |
- run: cargo fmt --all -- --check | |
name: Check Code Format π§ | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout ποΈ | |
- uses: dtolnay/rust-toolchain@stable | |
name: Setup Cargo Toolchain ποΈ | |
with: | |
components: clippy | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo clippy --tests | |
name: Run Clippy Lints π¨ | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout ποΈ | |
- uses: dtolnay/rust-toolchain@stable | |
name: Setup Cargo Toolchain ποΈ | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo test | |
name: Running Tests π | |
build-nix: | |
name: Build on Nix | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout ποΈ | |
- uses: cachix/install-nix-action@v18 | |
name: Install Nix ποΈ | |
- uses: cachix/cachix-action@v11 | |
name: Setup Cachix ποΈ | |
with: | |
name: monadlab | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: nix build | |
name: Build on Nix π |