linter.yml 944 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
  2. # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
  3. name: Node.js CI
  4. on:
  5. push:
  6. branches: [main, thin]
  7. pull_request:
  8. branches: [main, thin]
  9. jobs:
  10. build:
  11. runs-on: ubuntu-latest
  12. strategy:
  13. matrix:
  14. node-version: [16.x, 18.x]
  15. steps:
  16. - name: Checkout code
  17. uses: actions/checkout@v3
  18. - name: Use Node.js ${{ matrix.node-version }}
  19. uses: actions/setup-node@v3
  20. with:
  21. node-version: ${{ matrix.node-version }}
  22. - name: Install pnpm
  23. run: npm install -g pnpm
  24. - name: Install dependencies
  25. run: pnpm install
  26. - name: Run type:check
  27. run: pnpm run type:check
  28. - name: Build
  29. run: pnpm build