CI.yml 494 B

12345678910111213141516171819202122
  1. name: CI
  2. on: [push, pull_request, workflow_call]
  3. jobs:
  4. test:
  5. name: Test & Lint
  6. runs-on: ubuntu-latest
  7. steps:
  8. - uses: actions/checkout@v4
  9. - uses: pnpm/action-setup@v2
  10. with:
  11. version: latest
  12. - uses: actions/setup-node@v4
  13. with:
  14. node-version: lts/*
  15. cache: pnpm
  16. - name: Install Dependencies
  17. run: pnpm i --frozen-lockfile
  18. - name: Lint
  19. run: pnpm lint
  20. - name: Test
  21. run: pnpm -r test