Skip to content

Commit

Permalink
Build: Update the GitHub Actions config
Browse files Browse the repository at this point in the history
  • Loading branch information
mgol committed Mar 14, 2023
1 parent ecf138f commit 062005f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,30 @@ name: CI

on: [push, pull_request]

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest, windows-latest]
node-version: [12.x, 14.x, 16.x, 17.x]
node-version: [14.x, 16.x, 18.x, 19.x]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ env.node-version }}-npm-lock-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ env.node-version }}-npm-lock-
- name: Use Node.js ${{ env.node-version }}
uses: actions/setup-node@v2.1.2
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ env.node-version }}

Expand Down

0 comments on commit 062005f

Please sign in to comment.