name: Test on: push: branches: [ master ] pull_request: jobs: test: name: Test runs-on: ubuntu-20.04 strategy: matrix: node-version: [14.x, 16.x] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - run: yarn --frozen-lockfile - run: yarn test all-jobs-pass: name: All jobs pass runs-on: ubuntu-20.04 needs: - test steps: - run: echo "Great success!"