diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 7d8b7a296..9333c6594 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -1,8 +1,6 @@ -name: Node.js CI - -on: [push] - +on: [push, pull_request] jobs: + build: runs-on: ubuntu-latest @@ -16,12 +14,13 @@ jobs: - uses: actions/setup-go@v1.0.0 with: # The Go version to download (if necessary) and use. Example: 1.9.3 go-version: '1.9.3' - + - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: node-version: ${{ matrix.node_version }} + - run: install - run: npm build --if-present - run: npm test