canary #134
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: canary | |
| on: | |
| schedule: | |
| - cron: "0 6 * * *" # daily at 6am UTC | |
| workflow_dispatch: | |
| jobs: | |
| live: | |
| name: Live wp.org Canary | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "8.2" | |
| tools: composer:v2 | |
| - name: Create stub CSS for embed | |
| run: touch internal/http/static/assets/styles/app.css | |
| - name: Live Canary Test | |
| run: go test -tags=wporg_live -count=1 -timeout=5m -v ./internal/integration/... | |
| production: | |
| name: Production Smoke Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "8.2" | |
| tools: composer:v2 | |
| - name: Create composer.json | |
| run: | | |
| cat > composer.json <<'EOF' | |
| { | |
| "repositories": [ | |
| { | |
| "name": "wp-packages", | |
| "type": "composer", | |
| "url": "https://repo.wp-packages.org" | |
| } | |
| ], | |
| "require": { | |
| "composer/installers": "^2.2", | |
| "wp-plugin/woocommerce": "*", | |
| "wp-theme/twentytwentyfive": "*" | |
| }, | |
| "config": { | |
| "allow-plugins": { | |
| "composer/installers": true | |
| } | |
| } | |
| } | |
| EOF | |
| - name: Composer install | |
| run: composer install --no-interaction --no-progress |