fix(admin): send Cache-Control no-store on API responses (#9) #57
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| jobs: | |
| check: | |
| runs-on: ${{ vars.RUNS_ON || 'ubuntu-latest' }} | |
| timeout-minutes: 30 | |
| env: | |
| GOTOOLCHAIN: auto | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up Go | |
| id: setup-go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| cache: false | |
| - name: Resolve Go cache paths | |
| id: go-cache | |
| run: | | |
| echo "gocache=$(go env GOCACHE)" >> "$GITHUB_OUTPUT" | |
| echo "gomodcache=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT" | |
| echo "goversion=$(go env GOVERSION)" >> "$GITHUB_OUTPUT" | |
| - name: Restore Go cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ${{ steps.go-cache.outputs.gocache }} | |
| ${{ steps.go-cache.outputs.gomodcache }} | |
| key: go-${{ runner.os }}-${{ runner.arch }}-${{ steps.go-cache.outputs.goversion }}-${{ hashFiles('go.sum') }} | |
| restore-keys: | | |
| go-${{ runner.os }}-${{ runner.arch }}-${{ steps.go-cache.outputs.goversion }}- | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@v6 | |
| with: | |
| version: 11.1.2 | |
| - name: Set up Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| cache-dependency-path: ui/pnpm-lock.yaml | |
| - name: Install golangci-lint | |
| uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: v2.11.4 | |
| install-only: true | |
| - name: Verify fast | |
| if: github.event_name == 'pull_request' | |
| run: make verify-fast | |
| - name: Verify no race | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| run: make verify-norace | |
| - name: Verify race | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| run: make verify-race | |
| - name: Test system runtime | |
| run: make test-system | |
| - name: Build dashboard systemtest server | |
| run: make build-systemtest-server | |
| - name: Install Chromium | |
| run: make ui-e2e-install PLAYWRIGHT_INSTALL_FLAGS=--with-deps | |
| - name: Test dashboard end to end | |
| run: make test-ui-e2e | |
| - name: Upload Playwright diagnostics | |
| if: failure() && hashFiles('ui/test-results/e2e/**') != '' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: playwright-diagnostics | |
| path: ui/test-results/e2e | |
| if-no-files-found: ignore | |
| retention-days: 7 |