ci.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. name: CI
  2. on:
  3. push:
  4. branches: [ "main" ]
  5. pull_request:
  6. branches: [ "main" ]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v3
  12. with:
  13. fetch-depth: 0
  14. - name: Config Git User
  15. run: |
  16. git config --local user.name "dragooncjw"
  17. git config --local user.email "289056872@qq.com"
  18. - name: For Debug
  19. run: |
  20. echo "Listing files in the root directory:"
  21. ls -alh
  22. - uses: actions/setup-node@v3
  23. with:
  24. node-version: 18
  25. # - name: Verify Change Logs
  26. # run: node common/scripts/install-run-rush.js change --verify
  27. - name: Rush Install
  28. run: node common/scripts/install-run-rush.js install
  29. - name: Rush build
  30. run: node common/scripts/install-run-rush.js build
  31. - name: Check Lint
  32. run: node common/scripts/install-run-rush.js lint --verbose
  33. - name: Check TS
  34. run: node common/scripts/install-run-rush.js ts-check
  35. - name: Test (coverage)
  36. run: node common/scripts/install-run-rush.js test:cov