Skip to content

Update official-site.yml #157

Update official-site.yml

Update official-site.yml #157

Workflow file for this run

name: Lint, format, and test
on:
push:
branches:
- 'main'
paths-ignore:
- 'docs/**'
- 'README.md'
- '.github/workflows/release.yml'
pull_request:
branches:
- 'main'
env:
CARGO_TERM_COLOR: always
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Free up disk space
run: sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /usr/local/share/boost "$AGENT_TOOLSDIRECTORY" /var/lib/apt/lists/*
- uses: actions/checkout@v3
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: tests-${{ runner.os }}-check-${{ hashFiles('**/Cargo.lock') }}
restore-keys: tests-${{ runner.os }}-check-
- run: cargo fmt --all -- --check
- run: cargo clippy
- run: cargo test
- run: cargo test --all-features