ci.yml 1.1 KB

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