tests.yml 616 B

12345678910111213141516171819202122232425262728
  1. name: Node.js CI
  2. on:
  3. push:
  4. branches: [main]
  5. pull_request:
  6. branches: [main]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. strategy:
  11. matrix:
  12. node-version: ["lts/*"]
  13. steps:
  14. - uses: actions/checkout@v2
  15. - uses: actions/setup-node@v2
  16. - name: Install pnpm
  17. run: curl -f https://get.pnpm.io/v6.14.js | node - add --global pnpm@6
  18. - name: Use Node.js ${{ matrix.node-version }}
  19. uses: actions/setup-node@v2
  20. with:
  21. node-version: ${{ matrix.node-version }}
  22. cache: pnpm
  23. - name: Run tests
  24. run: pnpm i && pnpm -r test