Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,40 @@ jobs:
- run: python -m pip install "reuse[charset-normalizer]==6.2.0"
- run: just release-candidate

# Everything above tests the crate. Nothing above touches the release path,
# which is why every defect in it so far only appeared during a release:
# an action missing from the repository allowlist, a release-plz
# configuration that disagreed with a manifest, a runner that cannot build
# the crate `cargo publish` verifies. This job runs the real release action
# with `dry_run`, so it downloads the same actions (including the ones
# release-plz itself calls), parses the same configuration, and performs the
# same publish verification build -- without uploading anything.
release-dry-run:
name: Release dry run
runs-on: windows-2022
timeout-minutes: 45
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
with:
toolchain: stable
- uses: release-plz/action@2eb1d8bcb770b4c48ccfaad919734b38b51958c9 # v0.5.131
with:
command: release
version: 0.3.160
dry_run: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

ci-required:
name: CI required
if: always()
needs: [hygiene, test, i686-smoke, linux, coverage, package]
needs: [hygiene, test, i686-smoke, linux, coverage, package, release-dry-run]
runs-on: ubuntu-latest
steps:
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped')
Expand Down
Loading