Skip to content

Commit

Permalink
Fix GitHub Actions workflow (#506)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
abetomo authored and DeviaVir committed Dec 5, 2019
1 parent 7fc530b commit 47cfa22
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Node CI

on: [push]
on: [push, pull_request]

jobs:
test:
Expand All @@ -12,10 +12,11 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
- uses: actions/setup-node@master
with:
node-version: ${{ matrix.node-version }}
- name: npm install, and test
run: |
npm install
npm test
- run: npm i -g npm
- run: node -v
- run: npm -v
- run: npm ci
- run: npm test

0 comments on commit 47cfa22

Please sign in to comment.