Skip to content

refactor: token

refactor: token #5

Workflow file for this run

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 πŸš€