ci: bump actions/setup-python from 6 to 6.2.0 #1856
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
| name: Lint and Test Hub | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| env: | |
| GOTOOLCHAIN: local | |
| GOFLAGS: "-tags=deprecated_server,deprecated_transport,nobadger,nomysql,nopgx" | |
| jobs: | |
| golangci: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6.0.3 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: "1.26" | |
| cache-dependency-path: | | |
| go.sum | |
| caddy/go.sum | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v9.2.1 | |
| with: | |
| version: latest | |
| args: --timeout=30m | |
| - name: golangci-lint (caddy module) | |
| uses: golangci/golangci-lint-action@v9.2.1 | |
| with: | |
| version: latest | |
| args: --timeout=30m --config ../.golangci.yml | |
| working-directory: caddy | |
| test: | |
| strategy: | |
| matrix: | |
| go: ["1.26"] | |
| fail-fast: false | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6.0.3 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| cache-dependency-path: | | |
| go.sum | |
| caddy/go.sum | |
| - name: Use go-deadlock | |
| run: ./tests/use-go-deadlock.sh | |
| - name: Test | |
| run: go test -race -covermode atomic -coverprofile=profile.cov -coverpkg=github.com/dunglas/mercure ./... | |
| - name: Test Caddy module | |
| working-directory: caddy/ | |
| run: | | |
| go test -timeout 1m -race -covermode atomic -coverprofile=profile.cov -coverpkg=github.com/dunglas/mercure ./... | |
| sed '1d' profile.cov >> ../profile.cov | |
| - name: Upload coverage results | |
| uses: shogo82148/actions-goveralls@v1 | |
| with: | |
| path-to-profile: profile.cov | |
| parallel: true | |
| - name: Start Mercure | |
| working-directory: caddy/mercure/ | |
| run: sudo MERCURE_PUBLISHER_JWT_KEY='!ChangeThisMercureHubJWTSecretKey!' MERCURE_SUBSCRIBER_JWT_KEY='!ChangeThisMercureHubJWTSecretKey!' go run main.go start --config ../../dev.Caddyfile | |
| - uses: actions/setup-node@v6.4.0 | |
| with: | |
| node-version: "lts/*" | |
| cache: "npm" | |
| cache-dependency-path: conformance-tests/package-lock.json | |
| - name: Install Playwrigth dependencies | |
| working-directory: conformance-tests/ | |
| run: npm ci | |
| - name: Cache Playwright browsers | |
| id: playwright-cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/ms-playwright | |
| key: ${{ runner.os }}-playwright-${{ hashFiles('conformance-tests/package-lock.json') }} | |
| - name: Install Playwright system dependencies | |
| working-directory: conformance-tests/ | |
| timeout-minutes: 10 | |
| run: npx playwright install-deps | |
| - name: Install playwright browsers | |
| if: steps.playwright-cache.outputs.cache-hit != 'true' | |
| working-directory: conformance-tests/ | |
| timeout-minutes: 15 | |
| env: | |
| DEBUG: pw:install | |
| # The CDN download can hang mid-install; bound each attempt and retry | |
| # instead of letting the step-level timeout kill the whole job. | |
| run: | | |
| for i in 1 2 3; do | |
| timeout 240 npx playwright install && exit 0 | |
| echo "::warning::playwright install attempt $i failed or hung, retrying" | |
| done | |
| exit 1 | |
| - name: Run Playwright tests | |
| working-directory: conformance-tests/ | |
| run: npx playwright test | |
| finish: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: shogo82148/actions-goveralls@v1 | |
| with: | |
| parallel-finished: true |