name: tests on: push: branches: - main tags-ignore: - "**" workflow_call: workflow_dispatch: jobs: tests: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 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 test --workspaces --if-present -- --coverage - name: Upload test coverage uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 with: token: ${{ secrets.CODECOV_TOKEN }}