Skip to content

Commit 4059292

Browse files
committed
ci: Update GitHub workflows
1 parent 5ad2494 commit 4059292

File tree

4 files changed

+78
-62
lines changed

4 files changed

+78
-62
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- 'v*'
77

88
jobs:
9-
build:
9+
test:
1010
name: Test
1111

1212
runs-on: ubuntu-latest
@@ -17,10 +17,10 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v2
1919

20-
- name: Use Node.js 14
20+
- name: Use Node.js 16
2121
uses: actions/setup-node@v1
2222
with:
23-
node-version: 14
23+
node-version: 16
2424

2525
- name: Install packages
2626
run: npm ci
@@ -46,7 +46,7 @@ jobs:
4646
runs-on: ubuntu-latest
4747

4848
needs:
49-
- build
49+
- test
5050

5151
steps:
5252
- uses: actions/checkout@v2
@@ -76,10 +76,10 @@ jobs:
7676
steps:
7777
- uses: actions/checkout@v2
7878

79-
- name: Use Node.js 14
79+
- name: Use Node.js 16
8080
uses: actions/setup-node@v1
8181
with:
82-
node-version: 14
82+
node-version: 16
8383
registry-url: https://registry.npmjs.org/
8484

8585
- name: Install packages
@@ -104,10 +104,10 @@ jobs:
104104
steps:
105105
- uses: actions/checkout@v2
106106

107-
- name: Use Node.js 14
107+
- name: Use Node.js 16
108108
uses: actions/setup-node@v1
109109
with:
110-
node-version: 14
110+
node-version: 16
111111
registry-url: https://npm.pkg.github.com/
112112
scope: '@foxifyjs'
113113

.github/workflows/test.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,27 @@
44
name: Test
55

66
on:
7+
schedule:
8+
- cron: "0 0 * * *"
79
push:
810
branches:
911
- master
1012
pull_request:
1113

1214
jobs:
13-
build:
15+
test:
1416

1517
strategy:
1618
matrix:
17-
os: [ macos-latest, windows-latest, ubuntu-latest ]
18-
node-version: [ 14.x, 15.x, 16.x ]
19+
os:
20+
- macos-latest
21+
- ubuntu-latest
22+
- windows-latest
23+
node-version:
24+
- 14
25+
- 15
26+
- 16
27+
- 17
1928

2029
runs-on: ${{ matrix.os }}
2130

@@ -49,7 +58,12 @@ jobs:
4958
- name: Test
5059
run: npm run test:ci
5160

61+
- name: Benchmark
62+
if: github.event_name == 'schedule'
63+
run: npm run benchmarks
64+
5265
- name: Upload coverage to Codecov
66+
if: github.event_name != 'schedule'
5367
uses: codecov/codecov-action@v1
5468
with:
5569
env_vars: OS,NODE_VERSION

0 commit comments

Comments
 (0)