Feat/async iterable iterator #156
Workflow file for this run
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: CI | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| ci: | |
| name: Build, Lint, Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lint | |
| run: npm run lint | |
| - name: Build | |
| run: npm run build | |
| - name: Type Coverage | |
| run: npm run type-coverage | |
| - name: Test | |
| run: npm test -- --coverage --coverageThreshold='{"global":{"lines":80}}' | |
| - name: Changelog Validation | |
| if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'no-changelog') | |
| run: | | |
| BASE=${{ github.event.pull_request.base.sha }} | |
| HEAD=${{ github.event.pull_request.head.sha }} | |
| CHANGED_SRC=$(git diff --name-only "$BASE" "$HEAD" -- src/ | wc -l) | |
| CHANGED_CHANGELOG=$(git diff --name-only "$BASE" "$HEAD" -- CHANGELOG.md | wc -l) | |
| if [ "$CHANGED_SRC" -gt "0" ] && [ "$CHANGED_CHANGELOG" -eq "0" ]; then | |
| echo "::error::Please update CHANGELOG.md under [Unreleased] when modifying files in src/." | |
| exit 1 | |
| fi |