Repository navigation
Move docker builds to GitHub and reorganise the repo #3
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: Verify dist JS matches webpack build | |
| on: | |
| pull_request: | |
| paths: | |
| - 'frontend/src/**' | |
| - 'frontend/webpack.config.cjs' | |
| - 'frontend/package.json' | |
| - 'frontend/package-lock.json' | |
| - 'frontend/tsconfig.json' | |
| - 'dist/js/bigipreport.js' | |
| - 'docker/frontend/Dockerfile' | |
| - '.dockerignore' | |
| - '.github/workflows/verify-underlay-js.yml' | |
| push: | |
| branches: ['**'] | |
| paths: | |
| - 'frontend/src/**' | |
| - 'frontend/webpack.config.cjs' | |
| - 'frontend/package.json' | |
| - 'frontend/package-lock.json' | |
| - 'frontend/tsconfig.json' | |
| - 'dist/js/bigipreport.js' | |
| - 'docker/frontend/Dockerfile' | |
| - '.dockerignore' | |
| - '.github/workflows/verify-underlay-js.yml' | |
| jobs: | |
| webpack-output-matches-commit: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install dependencies | |
| run: npm --prefix frontend ci | |
| - name: Build bundle | |
| run: npm --prefix frontend run build | |
| - name: Fail if committed bigipreport.js differs from build | |
| run: | | |
| if ! git diff --exit-code HEAD -- dist/js/bigipreport.js; then | |
| echo "::error::dist/js/bigipreport.js is out of sync with webpack. Run \`npm run build\` locally and commit the result." | |
| git diff HEAD -- dist/js/bigipreport.js | head -200 | |
| exit 1 | |
| fi |