11 description: 'With Benchmark?'
16 runs-on: ubuntu-latest
20 node-version: [12.x, 14.x]
24 uses: actions/checkout@v2
26 - name: Set node version to ${{ matrix.node-version }}
27 uses: actions/setup-node@v1
29 node-version: ${{ matrix.node-version }}
35 run: npm run build --if-present
41 if: github.ref != 'refs/heads/master'
44 - name: Test & Coverage
45 if: github.ref == 'refs/heads/master'
48 export COVERALLS_REPO_TOKEN=${{ secrets.COVERALLS_REPO_TOKEN }}
54 if: github.event.inputs.withBenchmark
55 run: npm run benchmark