| 1 | name: build |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [master, v1] |
| 6 | pull_request: |
| 7 | branches: ["*"] |
| 8 | |
| 9 | jobs: |
| 10 | build: |
| 11 | runs-on: ubuntu-latest |
| 12 | |
| 13 | strategy: |
| 14 | matrix: |
| 15 | node-version: [10.x, 12.x, 14.x] |
| 16 | |
| 17 | steps: |
| 18 | - uses: actions/checkout@v2 |
| 19 | - name: Use Node.js ${{ matrix.node-version }} |
| 20 | uses: actions/setup-node@v1 |
| 21 | with: |
| 22 | node-version: ${{ matrix.node-version }} |
| 23 | - run: npm install |
| 24 | - run: npm test |
| 25 | - name: Coveralls |
| 26 | uses: coverallsapp/github-action@master |
| 27 | with: |
| 28 | github-token: ${{ secrets.GITHUB_TOKEN }} |