feat: include job name in top level span #12
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: check-dist | |
| on: | |
| push: | |
| jobs: | |
| check-dist: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .node-version | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run checks | |
| run: npm run check | |
| - name: Build project | |
| run: npm run build | |
| - name: Compare expected and actual dist/index.js | |
| run: | | |
| if [ "$(git diff --ignore-space-at-eol dist/index.js | wc -l)" -gt "0" ]; then | |
| echo "Detected outdated dist/index.js. Please run 'npm run build' and commit the changes." | |
| git diff | |
| exit 1 | |
| fi |