diff --git a/.github/workflows/node.js.yml b/.github/workflows/build-test.yml similarity index 50% rename from .github/workflows/node.js.yml rename to .github/workflows/build-test.yml index 2f0a38a..211651a 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/build-test.yml @@ -1,7 +1,4 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: Node.js CI +name: Tests on: push: @@ -11,13 +8,11 @@ on: jobs: build: - - runs-on: ubuntu-latest - + name: Build & test + runs-on: ubuntu-20.04 strategy: matrix: node-version: [10.x, 12.x, 14.x] - steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} @@ -25,5 +20,12 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: yarn - - run: npm run build --if-present - - run: npm test + - run: yarn build + - run: yarn test + all-jobs-pass: + name: All jobs pass + runs-on: ubuntu-20.04 + needs: + - build + steps: + - uses: actions/checkout@v2