Skip to content

Commit 65ffd4f

Browse files
committed
refactor(ci): extract dedicated release test workflow
1 parent 47aa9eb commit 65ffd4f

3 files changed

Lines changed: 25 additions & 10 deletions

File tree

‎.github/workflows/__shared-ci.yml‎

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,9 @@ permissions: {}
88
jobs:
99
test-release:
1010
name: Test release preparation and recovery
11-
runs-on: ubuntu-latest
11+
uses: $/.github/workflows/__test-release.yml
1212
permissions:
1313
contents: read
14-
steps:
15-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
16-
with:
17-
persist-credentials: false
18-
- uses: $/actions/setup-node
19-
with:
20-
working-directory: tests/release
21-
- run: npm test
22-
working-directory: tests/release
2314

2415
linter:
2516
uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@44f6108cef0e9884ea7735f3d62932c2310745d4 # 0.39.1
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Internal - Tests for release preparation and recovery
2+
3+
on:
4+
workflow_call:
5+
6+
permissions: {}
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
steps:
14+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
15+
with:
16+
persist-credentials: false
17+
- uses: $/actions/setup-node
18+
with:
19+
working-directory: tests/release
20+
- run: npm test
21+
working-directory: tests/release

‎docs/development/release-tests.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ npm ci --prefix tests/release
77
npm test --prefix tests/release
88
```
99

10+
In CI, the [release test workflow](../../.github/workflows/__test-release.yml)
11+
runs this suite through [shared CI](../../.github/workflows/__shared-ci.yml).
12+
1013
Tests execute the action scripts for npm versioning, atomic Git pushes and tag
1114
recovery in temporary local repositories. They check invalid versions, tag collisions,
1215
concurrent pushes and recovery after dispatch fails. A package fixture applies a supplied HoverKraft plan, builds a CLI,

0 commit comments

Comments
 (0)