test.yml 473 B

12345678910111213141516171819202122232425
  1. name: Test
  2. on:
  3. pull_request:
  4. branches:
  5. - master
  6. jobs:
  7. test:
  8. runs-on: ubuntu-latest
  9. strategy:
  10. matrix:
  11. node-version: [10.x, 12.x, 14.x]
  12. steps:
  13. - uses: actions/checkout@v2
  14. - name: Use Node.js ${{ matrix.node-version }}
  15. uses: actions/setup-node@v1
  16. with:
  17. node-version: ${{ matrix.node-version }}
  18. - run: yarn install --frozen-lockfile
  19. - run: yarn prettier:check
  20. - run: yarn test