ci.yml 898 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. name: Continuous Integration
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. branches:
  8. - main
  9. jobs:
  10. install-lint-build:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Checkout code
  14. uses: actions/checkout@v4
  15. - name: Setup Node.js
  16. uses: actions/setup-node@v4
  17. with:
  18. node-version: 20
  19. - name: Install pnpm
  20. run: npm install -g pnpm
  21. - name: Install dependencies
  22. run: pnpm install --frozen-lockfile
  23. - name: Lint the code
  24. run: pnpm lint
  25. # - name: Analyze unused files and dependencies
  26. # run: pnpm knip
  27. - name: Run Prettier check
  28. run: pnpm format:check
  29. - name: Install Playwright Chromium
  30. run: pnpm exec playwright install chromium --with-deps
  31. - name: Run tests
  32. run: pnpm test
  33. - name: Build the project
  34. run: pnpm build