Skip to content

Commit

Permalink
chore: update nodejs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
solufa committed Aug 13, 2024
1 parent dc4f5ac commit 2ade8fc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ on: [push, pull_request]

jobs:
test:
name: "Test on Node:${{ matrix.node-version }} OS:${{ matrix.os }}"
name: 'Test on Node:${{ matrix.node-version }} OS:${{ matrix.os }}'
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16, 18, 20]
node-version: [18, 20]
os: [ubuntu-latest]
include:
- os: windows-latest
node-version: 18
node-version: 20
steps:
- uses: actions/checkout@v3
- name: setup Node.js ${{ matrix.node-version }}
Expand All @@ -22,7 +22,7 @@ jobs:
- uses: actions/cache@v2
id: npm-cache
with:
path: "node_modules"
path: 'node_modules'
key: ${{ runner.os }}-node-v${{ matrix.node-version }}-npm-${{ hashFiles('package-lock.json') }}
- run: npm install
if: steps.npm-cache.outputs.cache-hit != 'true'
Expand All @@ -41,13 +41,13 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: "https://registry.npmjs.org"
node-version: 20
registry-url: 'https://registry.npmjs.org'
- uses: actions/cache@v2
id: npm-cache
with:
path: "node_modules"
key: ${{ runner.os }}-node-v18-npm-${{ hashFiles('package-lock.json') }}
path: 'node_modules'
key: ${{ runner.os }}-node-v20-npm-${{ hashFiles('package-lock.json') }}
- run: npm install
if: steps.npm-cache.outputs.cache-hit != 'true'
- run: npm run build
Expand Down

0 comments on commit 2ade8fc

Please sign in to comment.