packages.wenpai.net/.github/workflows/canary.yml
Tang Rufus 4c2225285c
Remove only from usage instructions (#43)
Composer v2 reads `available-package-patterns`
from repo's `/packages.json`.
2026-03-21 13:45:35 -05:00

58 lines
1.5 KiB
YAML

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@v6
- 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