Disable flaky CI workflows (Playground tests, SonarCloud)
- Disable WordPress Playground tests from automatic PR/push triggers (WordPress Playground CLI doesn't start reliably in GitHub Actions) - Disable SonarCloud workflow (SONAR_TOKEN returns HTTP 403) - Comment out SonarCloud job in code-quality.yml - Keep workflows available for manual debugging via workflow_dispatch - PHPUnit tests and code quality checks remain active
This commit is contained in:
96
.github/workflows/code-quality.yml
vendored
96
.github/workflows/code-quality.yml
vendored
@@ -87,52 +87,56 @@ jobs:
|
||||
run: composer phpmd
|
||||
continue-on-error: true
|
||||
|
||||
sonarcloud:
|
||||
name: SonarCloud Analysis
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: 17
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Cache SonarCloud packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.sonar/cache
|
||||
key: ${{ runner.os }}-sonar
|
||||
restore-keys: ${{ runner.os }}-sonar
|
||||
|
||||
- name: Check if SonarCloud token is set
|
||||
id: check_sonar_token
|
||||
run: |
|
||||
if [ -z "${{ secrets.SONAR_TOKEN }}" ]; then
|
||||
echo "SONAR_TOKEN is not set, skipping SonarCloud analysis"
|
||||
echo "skip=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "skip=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: SonarCloud Scan
|
||||
if: steps.check_sonar_token.outputs.skip != 'true'
|
||||
uses: SonarSource/sonarqube-scan-action@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
with:
|
||||
args: >
|
||||
-Dsonar.projectKey=wpallstars_wp-plugin-starter-template-for-ai-coding
|
||||
-Dsonar.organization=wpallstars
|
||||
-Dsonar.sources=.
|
||||
-Dsonar.exclusions=vendor/**,node_modules/**,tests/**,bin/**,build/**,dist/**,.github/**,.git/**,cypress/**,playground/**,.wiki/**
|
||||
-Dsonar.sourceEncoding=UTF-8
|
||||
continue-on-error: true
|
||||
# NOTE: SonarCloud job is disabled because SONAR_TOKEN is not properly configured.
|
||||
# To enable, configure a valid SONAR_TOKEN secret and uncomment this job.
|
||||
# Generate a token at: https://sonarcloud.io/account/security
|
||||
#
|
||||
# sonarcloud:
|
||||
# name: SonarCloud Analysis
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: Checkout code
|
||||
# uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
# with:
|
||||
# fetch-depth: 0
|
||||
#
|
||||
# - name: Set up JDK 17
|
||||
# uses: actions/setup-java@v4
|
||||
# with:
|
||||
# java-version: 17
|
||||
# distribution: 'temurin'
|
||||
#
|
||||
# - name: Cache SonarCloud packages
|
||||
# uses: actions/cache@v4
|
||||
# with:
|
||||
# path: ~/.sonar/cache
|
||||
# key: ${{ runner.os }}-sonar
|
||||
# restore-keys: ${{ runner.os }}-sonar
|
||||
#
|
||||
# - name: Check if SonarCloud token is set
|
||||
# id: check_sonar_token
|
||||
# run: |
|
||||
# if [ -z "${{ secrets.SONAR_TOKEN }}" ]; then
|
||||
# echo "SONAR_TOKEN is not set, skipping SonarCloud analysis"
|
||||
# echo "skip=true" >> $GITHUB_OUTPUT
|
||||
# else
|
||||
# echo "skip=false" >> $GITHUB_OUTPUT
|
||||
# fi
|
||||
#
|
||||
# - name: SonarCloud Scan
|
||||
# if: steps.check_sonar_token.outputs.skip != 'true'
|
||||
# uses: SonarSource/sonarqube-scan-action@master
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
# with:
|
||||
# args: >
|
||||
# -Dsonar.projectKey=wpallstars_wp-plugin-starter-template-for-ai-coding
|
||||
# -Dsonar.organization=wpallstars
|
||||
# -Dsonar.sources=.
|
||||
# -Dsonar.exclusions=vendor/**,node_modules/**,tests/**,bin/**,build/**,dist/**,.github/**,.git/**,cypress/**,playground/**,.wiki/**
|
||||
# -Dsonar.sourceEncoding=UTF-8
|
||||
# continue-on-error: true
|
||||
|
||||
codacy:
|
||||
name: Codacy Analysis
|
||||
|
||||
19
.github/workflows/playground-tests-fix.yml
vendored
19
.github/workflows/playground-tests-fix.yml
vendored
@@ -1,11 +1,22 @@
|
||||
name: WordPress Playground Tests Fix
|
||||
|
||||
# DISABLED: WordPress Playground CLI doesn't work reliably in GitHub Actions CI environments
|
||||
# The server fails to start within timeout periods. These tests should be run locally instead.
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, feature/* ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
# Disable automatic triggers - only run manually if needed for debugging
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
debug:
|
||||
description: 'Enable debug mode'
|
||||
required: false
|
||||
default: 'false'
|
||||
|
||||
# Commented out triggers that cause CI noise:
|
||||
# push:
|
||||
# branches: [ main, feature/* ]
|
||||
# pull_request:
|
||||
# branches: [ main ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
24
.github/workflows/playground-tests.yml
vendored
24
.github/workflows/playground-tests.yml
vendored
@@ -1,11 +1,27 @@
|
||||
name: WordPress Playground Tests
|
||||
|
||||
# DISABLED: WordPress Playground CLI doesn't work reliably in GitHub Actions CI environments
|
||||
# The server fails to start within timeout periods. These tests should be run locally instead.
|
||||
# See: https://wordpress.github.io/wordpress-playground/developers/local-development
|
||||
#
|
||||
# To run locally:
|
||||
# npm run test:playground:single
|
||||
# npm run test:playground:multisite
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, feature/* ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
# Disable automatic triggers - only run manually if needed for debugging
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
debug:
|
||||
description: 'Enable debug mode'
|
||||
required: false
|
||||
default: 'false'
|
||||
|
||||
# Commented out triggers that cause CI noise:
|
||||
# push:
|
||||
# branches: [ main, feature/* ]
|
||||
# pull_request:
|
||||
# branches: [ main ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
22
.github/workflows/sonarcloud.yml
vendored
22
.github/workflows/sonarcloud.yml
vendored
@@ -1,12 +1,24 @@
|
||||
name: SonarCloud Analysis
|
||||
|
||||
# NOTE: This workflow requires a valid SONAR_TOKEN secret to be configured.
|
||||
# If you see HTTP 403 errors, the token may be expired or invalid.
|
||||
# Generate a new token at: https://sonarcloud.io/account/security
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, feature/* ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
types: [opened, synchronize, reopened]
|
||||
# Only run manually until SONAR_TOKEN is properly configured
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
force_run:
|
||||
description: 'Force run even if token validation fails'
|
||||
required: false
|
||||
default: 'false'
|
||||
|
||||
# Commented out automatic triggers until SONAR_TOKEN is properly configured:
|
||||
# push:
|
||||
# branches: [ main, feature/* ]
|
||||
# pull_request:
|
||||
# branches: [ main ]
|
||||
# types: [opened, synchronize, reopened]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
19
.github/workflows/wordpress-tests.yml
vendored
19
.github/workflows/wordpress-tests.yml
vendored
@@ -1,11 +1,22 @@
|
||||
name: WordPress Tests
|
||||
|
||||
# DISABLED: WordPress Playground CLI doesn't work reliably in GitHub Actions CI environments
|
||||
# The server fails to start within timeout periods. These tests should be run locally instead.
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, feature/* ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
# Disable automatic triggers - only run manually if needed for debugging
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
debug:
|
||||
description: 'Enable debug mode'
|
||||
required: false
|
||||
default: 'false'
|
||||
|
||||
# Commented out triggers that cause CI noise:
|
||||
# push:
|
||||
# branches: [ main, feature/* ]
|
||||
# pull_request:
|
||||
# branches: [ main ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
Reference in New Issue
Block a user