fix: load custom.css without minifying in production #7
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: Build Tests | |
| on: | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: build-tests-${{ github.head_ref || github.ref_name }} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| build-tests: | |
| runs-on: ubuntu-latest | |
| env: | |
| HUGO_VERSION: 0.161.1 | |
| # These specs build temporary Hugo sites and inspect the output files | |
| # directly, so no browser or web server is needed. Setting BASE_URL | |
| # keeps Playwright from starting the docs webServer. | |
| BASE_URL: http://localhost:1313 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| submodules: recursive | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "24" | |
| cache: npm | |
| - name: Setup Hugo | |
| run: | | |
| wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ | |
| && sudo dpkg -i ${{ runner.temp }}/hugo.deb | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run build tests | |
| run: npm run test:build | |
| - name: Upload report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-tests-report | |
| path: playwright-report/ | |
| retention-days: 14 |