Update Atlas Examples and Tools. #2
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
name: lint code | |
on: | |
pull_request: | |
push: | |
# Sequence of patterns matched against refs/heads | |
branches: | |
- 'main' | |
- 'research/**' | |
- 'releases/**' | |
jobs: | |
lint: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout workspace | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
token: ${{ secrets.PAT_TOKEN }} | |
- uses: Swatinem/rust-cache@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
components: rustfmt, clippy | |
- run: | | |
rustup --version | |
rustup show | |
cargo --version | |
cargo fmt --version | |
cargo clippy --version | |
- run: cargo fmt --all -- --check | |
- run: cargo clippy --workspace --all-targets -- --no-deps | |
unit-tests: | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
env: | |
# Shrink artifact size by not including debug info. Makes build faster and shrinks cache. | |
CARGO_PROFILE_DEV_DEBUG: 0 | |
CARGO_PROFILE_TEST_DEBUG: 0 | |
CARGO_TERM_COLOR: always | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: Swatinem/rust-cache@v2 | |
- uses: taiki-e/install-action@nextest | |
- run: cargo build --tests | |
- run: cargo nextest run |