Skip to content

Commit 3032e10

Browse files
committed
chore: run tests after release please PR
1 parent 864a979 commit 3032e10

File tree

2 files changed

+53
-44
lines changed

2 files changed

+53
-44
lines changed

.github/workflows/release-please.yml

+52-44
Original file line numberDiff line numberDiff line change
@@ -4,57 +4,65 @@ on:
44
push:
55
branches:
66
- main
7+
pull_request:
78

89
jobs:
910
release-please:
11+
outputs:
12+
pr: ${{ steps.release.outputs.pr }}
1013
permissions:
1114
contents: write # to create release commit (google-github-actions/release-please-action)
1215
pull-requests: write # to create release PR (google-github-actions/release-please-action)
1316

1417
runs-on: ubuntu-latest
1518
steps:
16-
- uses: google-github-actions/release-please-action@v2
17-
id: release
18-
with:
19-
package-name: node-gyp
20-
release-type: node
21-
changelog-types: >
22-
[{"type":"feat","section":"Features","hidden":false},
23-
{"type":"fix","section":"Bug Fixes","hidden":false},
24-
{"type":"bin","section":"Core","hidden":false},
25-
{"type":"gyp","section":"Core","hidden":false},
26-
{"type":"lib","section":"Core","hidden":false},
27-
{"type":"src","section":"Core","hidden":false},
28-
{"type":"test","section":"Tests","hidden":false},
29-
{"type":"build","section":"Core","hidden":false},
30-
{"type":"clean","section":"Core","hidden":false},
31-
{"type":"configure","section":"Core","hidden":false},
32-
{"type":"install","section":"Core","hidden":false},
33-
{"type":"list","section":"Core","hidden":false},
34-
{"type":"rebuild","section":"Core","hidden":false},
35-
{"type":"remove","section":"Core","hidden":false},
36-
{"type":"deps","section":"Core","hidden":false},
37-
{"type":"python","section":"Core","hidden":false},
38-
{"type":"lin","section":"Core","hidden":false},
39-
{"type":"linux","section":"Core","hidden":false},
40-
{"type":"mac","section":"Core","hidden":false},
41-
{"type":"macos","section":"Core","hidden":false},
42-
{"type":"win","section":"Core","hidden":false},
43-
{"type":"windows","section":"Core","hidden":false},
44-
{"type":"zos","section":"Core","hidden":false},
45-
{"type":"doc","section":"Doc","hidden":false},
46-
{"type":"docs","section":"Doc","hidden":false},
47-
{"type":"readme","section":"Doc","hidden":false},
48-
{"type":"chore","section":"Miscellaneous","hidden":false},
49-
{"type":"refactor","section":"Miscellaneous","hidden":false},
50-
{"type":"ci","section":"Miscellaneous","hidden":false},
51-
{"type":"meta","section":"Miscellaneous","hidden":false}]
19+
- uses: google-github-actions/release-please-action@v2
20+
id: release
21+
with:
22+
package-name: node-gyp
23+
release-type: node
24+
changelog-types: >
25+
[{"type":"feat","section":"Features","hidden":false},
26+
{"type":"fix","section":"Bug Fixes","hidden":false},
27+
{"type":"bin","section":"Core","hidden":false},
28+
{"type":"gyp","section":"Core","hidden":false},
29+
{"type":"lib","section":"Core","hidden":false},
30+
{"type":"src","section":"Core","hidden":false},
31+
{"type":"test","section":"Tests","hidden":false},
32+
{"type":"build","section":"Core","hidden":false},
33+
{"type":"clean","section":"Core","hidden":false},
34+
{"type":"configure","section":"Core","hidden":false},
35+
{"type":"install","section":"Core","hidden":false},
36+
{"type":"list","section":"Core","hidden":false},
37+
{"type":"rebuild","section":"Core","hidden":false},
38+
{"type":"remove","section":"Core","hidden":false},
39+
{"type":"deps","section":"Core","hidden":false},
40+
{"type":"python","section":"Core","hidden":false},
41+
{"type":"lin","section":"Core","hidden":false},
42+
{"type":"linux","section":"Core","hidden":false},
43+
{"type":"mac","section":"Core","hidden":false},
44+
{"type":"macos","section":"Core","hidden":false},
45+
{"type":"win","section":"Core","hidden":false},
46+
{"type":"windows","section":"Core","hidden":false},
47+
{"type":"zos","section":"Core","hidden":false},
48+
{"type":"doc","section":"Doc","hidden":false},
49+
{"type":"docs","section":"Doc","hidden":false},
50+
{"type":"readme","section":"Doc","hidden":false},
51+
{"type":"chore","section":"Miscellaneous","hidden":false},
52+
{"type":"refactor","section":"Miscellaneous","hidden":false},
53+
{"type":"ci","section":"Miscellaneous","hidden":false},
54+
{"type":"meta","section":"Miscellaneous","hidden":false}]
55+
# Standard Conventional Commits: `feat` and `fix`
56+
# node-gyp subdirectories: `bin`, `gyp`, `lib`, `src`, `test`
57+
# node-gyp subcommands: `build`, `clean`, `configure`, `install`, `list`, `rebuild`, `remove`
58+
# Core abstract category: `deps`
59+
# Languages/platforms: `python`, `lin`, `linux`, `mac`, `macos`, `win`, `window`, `zos`
60+
# Documentation: `doc`, `docs`, `readme`
61+
# Standard Conventional Commits: `chore` (under "Miscellaneous")
62+
# Miscellaneous abstract categories: `refactor`, `ci`, `meta`
5263

53-
# Standard Conventional Commits: `feat` and `fix`
54-
# node-gyp subdirectories: `bin`, `gyp`, `lib`, `src`, `test`
55-
# node-gyp subcommands: `build`, `clean`, `configure`, `install`, `list`, `rebuild`, `remove`
56-
# Core abstract category: `deps`
57-
# Languages/platforms: `python`, `lin`, `linux`, `mac`, `macos`, `win`, `window`, `zos`
58-
# Documentation: `doc`, `docs`, `readme`
59-
# Standard Conventional Commits: `chore` (under "Miscellaneous")
60-
# Miscellaneous abstract categories: `refactor`, `ci`, `meta`
64+
test:
65+
name: Release Test
66+
needs: [ release-please ]
67+
if: needs.release-please.outputs.pr
68+
uses: ./.github/workflows/tests.yml

.github/workflows/tests.yml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
branches: [ main ]
88
pull_request:
99
branches: [ main ]
10+
workflow_call:
1011

1112
permissions:
1213
contents: read # to fetch code (actions/checkout)

0 commit comments

Comments
 (0)