mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-09 22:30:28 +00:00
ci: Use taiki-e/github-actions/.github/workflows/test.yml reusable workflow
This commit is contained in:
32
.github/workflows/ci.yml
vendored
32
.github/workflows/ci.yml
vendored
@@ -22,8 +22,6 @@ env:
|
|||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
RUSTFLAGS: -D warnings
|
RUSTFLAGS: -D warnings
|
||||||
RUSTUP_MAX_RETRIES: 10
|
RUSTUP_MAX_RETRIES: 10
|
||||||
# NB: sync with miri job's --exclude option
|
|
||||||
EXCLUDE: --exclude install-action-internal-codegen
|
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
@@ -38,12 +36,18 @@ jobs:
|
|||||||
uses: taiki-e/github-actions/.github/workflows/miri.yml@main
|
uses: taiki-e/github-actions/.github/workflows/miri.yml@main
|
||||||
with:
|
with:
|
||||||
event_name: ${{ github.event_name }}
|
event_name: ${{ github.event_name }}
|
||||||
# NB: sync with env.EXCLUDE
|
# NB: sync with test job's --exclude option
|
||||||
args: --exclude install-action-internal-codegen
|
args: --exclude install-action-internal-codegen
|
||||||
msrv:
|
msrv:
|
||||||
uses: taiki-e/github-actions/.github/workflows/msrv.yml@main
|
uses: taiki-e/github-actions/.github/workflows/msrv.yml@main
|
||||||
with:
|
with:
|
||||||
event_name: ${{ github.event_name }}
|
event_name: ${{ github.event_name }}
|
||||||
|
test-manifest-schema:
|
||||||
|
uses: taiki-e/github-actions/.github/workflows/test.yml@main
|
||||||
|
with:
|
||||||
|
# NB: sync with miri job's --exclude option
|
||||||
|
test-args: --exclude install-action-internal-codegen
|
||||||
|
no-std: false
|
||||||
tidy:
|
tidy:
|
||||||
uses: taiki-e/github-actions/.github/workflows/tidy.yml@main
|
uses: taiki-e/github-actions/.github/workflows/tidy.yml@main
|
||||||
permissions:
|
permissions:
|
||||||
@@ -277,25 +281,3 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
PR_NUMBER: ${{ steps.create-pull-request.outputs.pull-request-number }}
|
PR_NUMBER: ${{ steps.create-pull-request.outputs.pull-request-number }}
|
||||||
if: github.repository_owner == 'taiki-e' && (github.event_name == 'schedule' || github.event_name == 'push' && github.ref == 'refs/heads/main') && steps.diff.outputs.success == 'false' && (steps.create-pull-request.outputs.pull-request-operation == 'created' || steps.create-pull-request.outputs.pull-request-operation == 'updated')
|
if: github.repository_owner == 'taiki-e' && (github.event_name == 'schedule' || github.event_name == 'push' && github.ref == 'refs/heads/main') && steps.diff.outputs.success == 'false' && (steps.create-pull-request.outputs.pull-request-operation == 'created' || steps.create-pull-request.outputs.pull-request-operation == 'updated')
|
||||||
|
|
||||||
manifest-schema:
|
|
||||||
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 ${EXCLUDE}
|
|
||||||
- run: cargo hack build --workspace --no-private --feature-powerset --no-dev-deps
|
|
||||||
- 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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user