name: Test on: push: branches: [main] pull_request: branches: [main] jobs: npm-test: runs-on: ubuntu-latest strategy: matrix: node-version: ['10', '12', '14'] steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - run: | npm install npm test - uses: coverallsapp/github-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }}