Skip to content

Commit 05023e6

Browse files
committed
refactor(ci): extract dedicated release test workflow
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
1 parent 47aa9eb commit 05023e6

3 files changed

Lines changed: 30 additions & 15 deletions

File tree

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

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,6 @@ on:
66
permissions: {}
77

88
jobs:
9-
test-release:
10-
name: Test release preparation and recovery
11-
runs-on: ubuntu-latest
12-
permissions:
13-
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
23-
249
linter:
2510
uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@44f6108cef0e9884ea7735f3d62932c2310745d4 # 0.39.1
2611
permissions:
@@ -32,6 +17,12 @@ jobs:
3217
security-events: write
3318
statuses: write
3419

20+
test-release:
21+
name: Test release preparation and recovery
22+
uses: $/.github/workflows/__test-release.yml
23+
permissions:
24+
contents: read
25+
3526
test-action-dependencies-cache:
3627
name: Test action "dependencies-cache"
3728
needs: linter
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)