Skip to content

Commit

Permalink
fix: github workflows node not found
Browse files Browse the repository at this point in the history
  • Loading branch information
steel1990 committed Dec 23, 2024
1 parent 7610e68 commit c1d1eea
Showing 1 changed file with 35 additions and 34 deletions.
69 changes: 35 additions & 34 deletions .github/workflows/npm_test.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
name: npm test

on:
push:
branches: [ dev, master, test ]
pull_request:
branches: [ dev ]

jobs:
test:

runs-on: macos-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build
run: |
npm install
npm run build --if-present
env:
CI: true
- name: npm test
run: |
npm test
env:
CI: true
name: npm test

on:
push:
branches: [ dev, master, test ]
pull_request:
branches: [ dev ]

jobs:
test:

runs-on: macos-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
architecture: 'x64'
- name: npm install, build
run: |
npm install
npm run build --if-present
env:
CI: true
- name: npm test
run: |
npm test
env:
CI: true

0 comments on commit c1d1eea

Please sign in to comment.