We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 251c156 + ca22151 commit e822c21Copy full SHA for e822c21
.github/workflows/ci.yml
@@ -1,4 +1,13 @@
1
-on: push
+on:
2
+ push:
3
+ branches:
4
+ - main
5
+ pull_request:
6
+ types: [opened, reopened, synchronize]
7
+
8
+env:
9
+ YARN_GPG: no
10
11
jobs:
12
build:
13
runs-on: ${{ matrix.os }}
@@ -9,12 +18,19 @@ jobs:
18
name: Node.js ${{ matrix.node }} on ${{ matrix.os }}
19
steps:
20
- uses: actions/checkout@v3
21
22
- name: Setup node
23
uses: actions/setup-node@v3
14
24
with:
15
25
node-version: ${{ matrix.node }}
16
- # cache: npm
26
27
+ - name: Cache node_modules
28
+ uses: actions/cache@v3
29
+ id: cache
30
+ with:
31
+ path: node_modules
32
+ key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package.json') }}
33
17
34
- run: npm install
35
36
- run: npm test
-env:
- YARN_GPG: no
0 commit comments