Skip to content

Commit 9985d70

Browse files
authored
chore: add CI test runs (#4)
1 parent e8c64a2 commit 9985d70

2 files changed

Lines changed: 42 additions & 1 deletion

File tree

.github/workflows/verify.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Verify
2+
3+
on:
4+
push:
5+
branches: [main, beta, chore/*, fix/*, feat/*]
6+
pull_request:
7+
types: [opened]
8+
branches: [main, beta]
9+
10+
jobs:
11+
action:
12+
name: Verify tests
13+
14+
strategy:
15+
matrix:
16+
platform: [ubuntu-latest, macos-latest, windows-latest]
17+
18+
runs-on: ${{ matrix.platform }}
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
23+
- name: Node.js
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version-file: 'package.json'
27+
28+
- name: Use node_modules cache
29+
uses: actions/cache@v3
30+
id: modules-cache
31+
with:
32+
path: '**/node_modules'
33+
key: ${{ secrets.CACHE_VERSION }}-${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
34+
restore-keys: ${{ secrets.CACHE_VERSION }}-${{ runner.os }}-modules-
35+
36+
- name: Install dependencies
37+
if: steps.modules-cache.outputs.cache-hit != 'true'
38+
run: yarn install --immutable
39+
40+
- name: Run tests
41+
run: yarn test

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"yarn": ">=1.22.10"
3838
},
3939
"volta": {
40-
"node": "14.17.0",
40+
"node": "18.13.0",
4141
"yarn": "1.22.10"
4242
},
4343
"packageManager": "yarn@3.2.0"

0 commit comments

Comments
 (0)