diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 1c8595b..3cf5b0e 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -3,30 +3,29 @@ name: Node CI on: push: branches: - - master + - master pull_request: branches: - - master + - master jobs: build: - runs-on: ubuntu-latest + if: "!contains(github.event.head_commit.message, '[skip ci]')" strategy: matrix: node-version: [8.x, 10.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, and test - run: | - npm install - npm run build --if-present - npm test - env: - CI: true + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install and test + run: | + npm install + npm test + env: + CI: true