Skip to content

Commit 3ca0fb4

Browse files
authored
chore: update and normalize GitHub workflows (#517)
- Use the same YAML structure everywhere - Use actions/setup-node@v2-beta - Add Node.js 15.x to the test matrix - Update release-please-action to v2.5.7 - Update stale action to v3
1 parent d70bab4 commit 3ca0fb4

File tree

4 files changed

+20
-18
lines changed

4 files changed

+20
-18
lines changed

.github/workflows/commitlint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
---
21
name: Conventional Commit Linter
2+
33
on:
44
push:
55
branches:

.github/workflows/nodejs.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,32 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v2
1515
- name: Use Node.js 14
16-
uses: actions/setup-node@v1
16+
uses: actions/setup-node@v2-beta
1717
with:
1818
node-version: 14.x
19-
- name: npm install and lint
20-
run: |
21-
npm install
22-
npm run lint
19+
- name: Install dependencies
20+
run: npm install
21+
- name: Lint
22+
run: npm run lint
2323

2424
test:
2525
name: Test on Node.js ${{ matrix.node-version }} and ${{ matrix.os }}
2626
strategy:
2727
fail-fast: false
2828
matrix:
29-
node-version: [10.x, 12.x, 14.x]
29+
node-version: [10.x, 12.x, 14.x, 15.x]
3030
# TODO(targos): fix and add windows-latest
3131
os: [ubuntu-latest, macOS-latest]
3232
runs-on: ${{ matrix.os }}
3333
steps:
3434
- uses: actions/checkout@v2
3535
- name: Use Node.js ${{ matrix.node-version }}
36-
uses: actions/setup-node@v1
36+
uses: actions/setup-node@v2-beta
3737
with:
3838
node-version: ${{ matrix.node-version }}
39-
- name: npm install and test
40-
run: |
41-
npm install
42-
npm run coverage-all
39+
- name: Install dependencies
40+
run: npm install
41+
- name: Run tests
42+
run: npm run coverage-all
4343
- name: Upload coverage report to Codecov
4444
uses: codecov/codecov-action@v1

.github/workflows/release-please.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1+
name: release-please
2+
13
on:
24
push:
35
branches:
46
- master
57

6-
name: release-please
78
jobs:
89
release-please:
910
runs-on: ubuntu-latest
1011
steps:
11-
- uses: GoogleCloudPlatform/[email protected].5
12+
- uses: GoogleCloudPlatform/[email protected].7
1213
with:
1314
token: ${{ secrets.GITHUB_TOKEN }}
1415
release-type: node

.github/workflows/stale.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: "Close stale issues and PRs"
1+
name: Close stale issues and PRs
2+
23
on:
34
schedule:
45
- cron: "0 0 * * *"
@@ -7,14 +8,14 @@ jobs:
78
stale:
89
runs-on: ubuntu-latest
910
steps:
10-
- uses: actions/stale@v1
11+
- uses: actions/stale@v3
1112
with:
1213
repo-token: ${{ secrets.GITHUB_TOKEN }}
1314
stale-issue-message: 'This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made.'
1415
stale-issue-label: 'stale'
15-
exempt-issue-label: 'never stale'
16+
exempt-issue-labels: 'never stale'
1617
stale-pr-message: 'This PR is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made.'
1718
stale-pr-label: 'stale'
18-
exempt-pr-label: 'never stale'
19+
exempt-pr-labels: 'never stale'
1920
days-before-stale: 90
2021
days-before-close: 14

0 commit comments

Comments
 (0)