File tree Expand file tree Collapse file tree 3 files changed +11
-21
lines changed
Expand file tree Collapse file tree 3 files changed +11
-21
lines changed Original file line number Diff line number Diff line change @@ -13,26 +13,15 @@ jobs:
1313
1414 strategy :
1515 matrix :
16- node-version : [12 .x, 14 .x]
16+ node-version : [18 .x, 20 .x]
1717
1818 steps :
19- - uses : actions/checkout@v1
19+ - uses : actions/checkout@v4
2020 - name : Use Node.js ${{ matrix.node-version }}
21- uses : actions/setup-node@v1
21+ uses : actions/setup-node@v4
2222 with :
2323 node-version : ${{ matrix.node-version }}
24- - name : Cache node modules
25- uses : actions/cache@v1
26- env :
27- cache-name : cache-node-modules
28- with :
29- path : ~/.npm
30- # This uses the same name as the build-action so we can share the caches.
31- key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
32- restore-keys : |
33- ${{ runner.os }}-build-${{ env.cache-name }}-
34- ${{ runner.os }}-build-
35- ${{ runner.os }}-
24+ cache : npm
3625 - run : npm ci --ignore-scripts
3726 - name : npm build and test
3827 run : npm test
Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ jobs:
1111 runs-on : ubuntu-latest
1212 steps :
1313 - name : Checkout Repo
14- uses : actions/checkout@master
14+ uses : actions/checkout@v4
1515 with :
1616 # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1717 fetch-depth : 0
1818
19- - name : Setup Node.js 12 .x
20- uses : actions/setup-node@master
19+ - name : Setup Node.js 18 .x
20+ uses : actions/setup-node@v4
2121 with :
22- node-version : 12 .x
22+ node-version : 18 .x
2323
2424 - name : Install Dependencies
2525 run : npm install
Original file line number Diff line number Diff line change 88 build :
99 runs-on : ubuntu-latest
1010 steps :
11- - uses : actions/checkout@v2
11+ - uses : actions/checkout@v4
1212
1313 - name : compressed-size-action
1414 uses : preactjs/compressed-size-action@v2
2121 uses : preactjs/compressed-size-action@v2
2222 with :
2323 pattern : ' test/fixtures/**/dist/!(*.map)'
24- build-script : ' test'
24+ # We don't care about test suite failures, that's for the CI action
25+ build-script : ' test -- -u'
2526 repo-token : ' ${{ secrets.GITHUB_TOKEN }}'
You can’t perform that action at this time.
0 commit comments