Skip to content

Commit 47cfa22

Browse files
abetomoDeviaVir
authored andcommitted
Fix GitHub Actions workflow (#506)
* Fix 'run' of GitHub Actions workflow Fix because it was not working properly on Windows. * Add 'pull_request' to GitHub Actions event * Modify GitHub Actions setting from 'npm install' to 'npm ci' Add confirmation of node and npm versions
1 parent 7fc530b commit 47cfa22

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/workflow.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Node CI
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
66
test:
@@ -12,10 +12,11 @@ jobs:
1212
os: [ubuntu-latest, windows-latest, macos-latest]
1313
steps:
1414
- uses: actions/checkout@master
15-
- uses: actions/setup-node@v1
15+
- uses: actions/setup-node@master
1616
with:
1717
node-version: ${{ matrix.node-version }}
18-
- name: npm install, and test
19-
run: |
20-
npm install
21-
npm test
18+
- run: npm i -g npm
19+
- run: node -v
20+
- run: npm -v
21+
- run: npm ci
22+
- run: npm test

0 commit comments

Comments
 (0)