| 1 | on: |
| 2 | push: |
| 3 | branches: |
| 4 | - master |
| 5 | pull_request: |
| 6 | types: [ assigned, opened, synchronize, reopened, labeled ] |
| 7 | name: ci |
| 8 | jobs: |
| 9 | test: |
| 10 | runs-on: ubuntu-latest |
| 11 | strategy: |
| 12 | matrix: |
| 13 | node: [12, 14, 16] |
| 14 | steps: |
| 15 | - uses: actions/checkout@v1 |
| 16 | - uses: actions/setup-node@v1 |
| 17 | with: |
| 18 | node-version: ${{ matrix.node }} |
| 19 | - run: node --version |
| 20 | - run: npm install --engine-strict |
| 21 | - run: npm test |
| 22 | windows: |
| 23 | runs-on: windows-latest |
| 24 | steps: |
| 25 | - uses: actions/checkout@v2 |
| 26 | - uses: actions/setup-node@v1 |
| 27 | with: |
| 28 | node-version: 12 |
| 29 | - run: npm install |
| 30 | - run: npm test |