Delete old source map Federated.js.map #305
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
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Code Checkout | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - name: Install Node | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: "lts/*" | |
| cache: 'npm' | |
| - name: Install node dependencies | |
| run: npm ci --timing | |
| - name: Lint javascript | |
| run: npm run lint | |
| - name: Verify minification uses script | |
| run: | | |
| npm run minify | |
| git diff --exit-code Universal-Federated-Analytics-Min.js Universal-Federated-Analytics-Min.js.map | |
| - name: Install browser for Puppeteer | |
| # Installs the matching version of Chrome required by your specific Puppeteer version | |
| run: npx puppeteer browsers install | |
| - name: Run tests | |
| # aa-exec applies Ubuntu's AppArmor profile for stable Chrome binaries to the Chrome for Testing binary downloaded by Puppeteer | |
| # Without it, Puppeteer fails with error "No usable sandbox!" | |
| # See https://pptr.dev/troubleshooting#issues-with-apparmor-on-ubuntu | |
| run: npm run test-site-dev & sleep 20; aa-exec -p chrome -- npm run cucumber |