ci.yml 945 B

1234567891011121314151617181920212223242526272829303132
  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: 1
  14. - name: Config Git User
  15. run: |
  16. git config --local user.name "chenjiawei.inizio"
  17. git config --local user.email "chenjiawei.inizio@bytedance.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: Test (coverage)
  32. run: node common/scripts/install-run-rush.js test:cov