node.js.yaml 623 B

123456789101112131415161718192021222324252627
  1. name: Node.js CI
  2. on:
  3. push:
  4. branches: ['main']
  5. pull_request:
  6. jobs:
  7. build:
  8. name: 'Fmt, Lint, & Build'
  9. env:
  10. PUBLIC_API_ENDPOINT: ''
  11. runs-on: ubuntu-latest
  12. strategy:
  13. matrix:
  14. node-version:
  15. - latest
  16. steps:
  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. - run: node --version
  23. - run: npm clean-install
  24. - run: npm run fmt
  25. #- run: npm run lint
  26. #- run: npm run lint:types
  27. - run: npm run build