build(deps-dev): bump handlebars from 4.7.8 to 4.7.9 #3
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: Test Action | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run linter | |
| run: npm run lint | |
| - name: Check formatting | |
| run: npm run format-check | |
| - name: Run tests | |
| run: npm test | |
| - name: Build TypeScript | |
| run: npm run build | |
| - name: Package with ncc | |
| run: npm run package | |
| - name: Compare dist/ | |
| run: | | |
| if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then | |
| echo "Detected uncommitted changes after build. Please run 'npm run package' and commit the changes." | |
| echo "" | |
| echo "Changed files:" | |
| git diff --name-only dist/ | |
| echo "" | |
| echo "Git diff:" | |
| git diff --text dist/ | |
| exit 1 | |
| fi | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@v4 | |
| if: always() | |
| with: | |
| files: ./coverage/lcov.info | |
| flags: unittests | |
| fail_ci_if_error: false |