test.yml 652 B

12345678910111213141516171819202122232425262728293031
  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: 18
  12. cache: 'yarn'
  13. - uses: actions/checkout@v3
  14. with:
  15. repository: 'wenzhixin/bootstrap-table-examples'
  16. path: './tools/bootstrap-table-examples'
  17. - name: Lint src and check docs
  18. run: |
  19. yarn install --frozen-lockfile
  20. yarn pre-commit
  21. - name: Cypress Test
  22. run: |
  23. mv ./tools/bootstrap-table-examples cypress/html
  24. yarn css:build:src
  25. yarn test