chore: version packages (#1814) #1321
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags-ignore: | |
| - "**" | |
| workflow_call: | |
| workflow_dispatch: | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| - run: npm ci | |
| - name: Check package.json | |
| run: | | |
| if [[ -n $(git status -s) ]]; then | |
| git status | |
| echo "Error: file tree is not clean; Likely needs npm install" | |
| echo "Run `npm install` and commit to resolve" | |
| exit 1 | |
| fi | |
| - name: Run lint | |
| run: npm run lint | |
| - name: Run typecheck | |
| run: npm run typecheck | |
| - name: Check for circular dependencies | |
| run: npm run madge | |
| - name: Run tests | |
| run: npm run lerna run test --stream --parallel -- -- --coverage | |
| - name: Upload test coverage | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |