| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- name: Test
- on:
- pull_request:
- jobs:
- test:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- - uses: actions/setup-node@v3
- with:
- node-version: 16
- cache: 'yarn'
- - uses: actions/checkout@v3
- with:
- repository: 'wenzhixin/bootstrap-table-examples'
- path: './tools/bootstrap-table-examples'
- - name: Get changed files
- id: changed-files
- uses: tj-actions/changed-files@v28
- - name: Check if changelog was changed
- continue-on-error: true
- if: contains(steps.changed-files.outputs.all_changed_files, 'CHANGELOG.md') == false
- run: exit 1
- - name: Lint src and check docs
- run: |
- yarn install --frozen-lockfile
- yarn pre-commit
- - name: Cypress Test
- run: |
- mv ./tools/bootstrap-table-examples cypress/html
- yarn css:build:src
- yarn test
|