test.yml 945 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: Test
  2. on:
  3. pull_request:
  4. jobs:
  5. test:
  6. runs-on: ubuntu-latest
  7. steps:
  8. - uses: actions/checkout@v3
  9. - uses: actions/setup-node@v3
  10. with:
  11. node-version: 16
  12. cache: 'yarn'
  13. - uses: actions/checkout@v3
  14. with:
  15. repository: 'wenzhixin/bootstrap-table-examples'
  16. path: './tools/bootstrap-table-examples'
  17. - name: Get changed files
  18. id: changed-files
  19. uses: tj-actions/changed-files@v28
  20. - name: Check if changelog was changed
  21. continue-on-error: true
  22. if: contains(steps.changed-files.outputs.all_changed_files, 'CHANGELOG.md') == false
  23. run: exit 1
  24. - name: Lint src and check docs
  25. run: |
  26. yarn install --frozen-lockfile
  27. yarn pre-commit
  28. - name: Cypress Test
  29. run: |
  30. mv ./tools/bootstrap-table-examples cypress/html
  31. yarn css:build:src
  32. yarn test