ci.yml 882 B

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