Skip to content

Commit

Permalink
ci: Use taiki-e/github-actions/.github/workflows/test.yml reusable wo…
Browse files Browse the repository at this point in the history
…rkflow
  • Loading branch information
taiki-e committed Jan 31, 2025
1 parent eaedd61 commit 2491dec
Showing 1 changed file with 5 additions and 33 deletions.
38 changes: 5 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,43 +41,15 @@ jobs:
uses: taiki-e/github-actions/.github/workflows/msrv.yml@main
with:
event_name: ${{ github.event_name }}
test:
uses: taiki-e/github-actions/.github/workflows/test.yml@main
with:
doc-nightly-only: true
build-args: --depth 2 --features unstable
tidy:
uses: taiki-e/github-actions/.github/workflows/tidy.yml@main
permissions:
contents: read
pull-requests: write # for gh pr edit --add-assignee
repository-projects: read # for gh pr edit --add-assignee
secrets: inherit

test:
strategy:
fail-fast: false
matrix:
rust:
- stable
- beta
- nightly
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: taiki-e/checkout-action@v1
- uses: taiki-e/github-actions/install-rust@main
with:
toolchain: ${{ matrix.rust }}
- uses: taiki-e/install-action@cargo-hack
- uses: taiki-e/install-action@cargo-minimal-versions
- run: cargo test --workspace --all-features --tests
if: (!startsWith(matrix.rust, 'nightly'))
- run: cargo test --workspace --all-features
if: startsWith(matrix.rust, 'nightly')
- run: cargo minimal-versions build --workspace --no-private --detach-path-deps=skip-exact --all-features
- run: cargo minimal-versions build --workspace --no-private --detach-path-deps=skip-exact --all-features --direct

features:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: taiki-e/checkout-action@v1
- uses: taiki-e/github-actions/install-rust@nightly
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack build --workspace --no-private --feature-powerset --depth 2 --no-dev-deps --features unstable --ignore-unknown-features

0 comments on commit 2491dec

Please sign in to comment.