Skip to content

Commit

Permalink
Migrate to tracel-xtask
Browse files Browse the repository at this point in the history
  • Loading branch information
syl20bnr committed Sep 27, 2024
1 parent b061ba4 commit 9c993fe
Show file tree
Hide file tree
Showing 23 changed files with 330 additions and 1,356 deletions.
57 changes: 26 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,44 +7,39 @@ env:
on:
pull_request: {}


jobs:
crates:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
- name: Setup Rust
uses: tracel-ai/github-actions/setup-rust@v1
with:
components: clippy, rustfmt
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Format
run: cargo xtask ci --target crates format
- name: Lint
run: cargo xtask ci --target crates lint
rust-toolchain: stable
cache-key: stable-linux
# --------------------------------------------------------------------------------
- name: Audit
run: cargo xtask ci --target crates audit
- name: Unit Tests
run: cargo xtask ci --target crates unit-tests
- name: Integration Tests
run: cargo xtask ci --target crates integration-tests
- name: Documentation Tests
run: cargo xtask ci --target crates doc-tests
examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
components: clippy, rustfmt
toolchain: stable
- uses: Swatinem/rust-cache@v2
run: cargo xtask check audit
# --------------------------------------------------------------------------------
- name: Format
run: cargo xtask ci --target examples format
shell: bash
env:
# work around for colors
# see: https://github.com/rust-lang/rustfmt/issues/3385
TERM: xterm-256color
run: cargo xtask check format
# --------------------------------------------------------------------------------
- name: Lint
run: cargo xtask ci --target examples lint
run: cargo xtask check lint
# --------------------------------------------------------------------------------
- name: Typos
uses: tracel-ai/github-actions/check-typos@v1
# --------------------------------------------------------------------------------
- name: Unit Tests
run: cargo xtask ci --target examples unit-tests
run: cargo xtask test unit
# --------------------------------------------------------------------------------
- name: Integration Tests
run: cargo xtask ci --target examples integration-tests
run: cargo xtask test integration
# --------------------------------------------------------------------------------
- name: Documentation Tests
run: cargo xtask ci --target examples doc-tests
run: cargo xtask doc tests
Loading

0 comments on commit 9c993fe

Please sign in to comment.