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
|
run: composer phpmd
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
sonarcloud:
|
# NOTE: SonarCloud job is disabled because SONAR_TOKEN is not properly configured.
|
||||||
name: SonarCloud Analysis
|
# To enable, configure a valid SONAR_TOKEN secret and uncomment this job.
|
||||||
runs-on: ubuntu-latest
|
# Generate a token at: https://sonarcloud.io/account/security
|
||||||
steps:
|
#
|
||||||
- name: Checkout code
|
# sonarcloud:
|
||||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
# name: SonarCloud Analysis
|
||||||
with:
|
# runs-on: ubuntu-latest
|
||||||
fetch-depth: 0
|
# steps:
|
||||||
|
# - name: Checkout code
|
||||||
- name: Set up JDK 17
|
# uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
uses: actions/setup-java@v4
|
# with:
|
||||||
with:
|
# fetch-depth: 0
|
||||||
java-version: 17
|
#
|
||||||
distribution: 'temurin'
|
# - name: Set up JDK 17
|
||||||
|
# uses: actions/setup-java@v4
|
||||||
- name: Cache SonarCloud packages
|
# with:
|
||||||
uses: actions/cache@v4
|
# java-version: 17
|
||||||
with:
|
# distribution: 'temurin'
|
||||||
path: ~/.sonar/cache
|
#
|
||||||
key: ${{ runner.os }}-sonar
|
# - name: Cache SonarCloud packages
|
||||||
restore-keys: ${{ runner.os }}-sonar
|
# uses: actions/cache@v4
|
||||||
|
# with:
|
||||||
- name: Check if SonarCloud token is set
|
# path: ~/.sonar/cache
|
||||||
id: check_sonar_token
|
# key: ${{ runner.os }}-sonar
|
||||||
run: |
|
# restore-keys: ${{ runner.os }}-sonar
|
||||||
if [ -z "${{ secrets.SONAR_TOKEN }}" ]; then
|
#
|
||||||
echo "SONAR_TOKEN is not set, skipping SonarCloud analysis"
|
# - name: Check if SonarCloud token is set
|
||||||
echo "skip=true" >> $GITHUB_OUTPUT
|
# id: check_sonar_token
|
||||||
else
|
# run: |
|
||||||
echo "skip=false" >> $GITHUB_OUTPUT
|
# if [ -z "${{ secrets.SONAR_TOKEN }}" ]; then
|
||||||
fi
|
# echo "SONAR_TOKEN is not set, skipping SonarCloud analysis"
|
||||||
|
# echo "skip=true" >> $GITHUB_OUTPUT
|
||||||
- name: SonarCloud Scan
|
# else
|
||||||
if: steps.check_sonar_token.outputs.skip != 'true'
|
# echo "skip=false" >> $GITHUB_OUTPUT
|
||||||
uses: SonarSource/sonarqube-scan-action@master
|
# fi
|
||||||
env:
|
#
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# - name: SonarCloud Scan
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
# if: steps.check_sonar_token.outputs.skip != 'true'
|
||||||
with:
|
# uses: SonarSource/sonarqube-scan-action@master
|
||||||
args: >
|
# env:
|
||||||
-Dsonar.projectKey=wpallstars_wp-plugin-starter-template-for-ai-coding
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
-Dsonar.organization=wpallstars
|
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
-Dsonar.sources=.
|
# with:
|
||||||
-Dsonar.exclusions=vendor/**,node_modules/**,tests/**,bin/**,build/**,dist/**,.github/**,.git/**,cypress/**,playground/**,.wiki/**
|
# args: >
|
||||||
-Dsonar.sourceEncoding=UTF-8
|
# -Dsonar.projectKey=wpallstars_wp-plugin-starter-template-for-ai-coding
|
||||||
continue-on-error: true
|
# -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:
|
codacy:
|
||||||
name: Codacy Analysis
|
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
|
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:
|
on:
|
||||||
push:
|
# Disable automatic triggers - only run manually if needed for debugging
|
||||||
branches: [ main, feature/* ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ main ]
|
|
||||||
workflow_dispatch:
|
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:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|||||||
24
.github/workflows/playground-tests.yml
vendored
24
.github/workflows/playground-tests.yml
vendored
@@ -1,11 +1,27 @@
|
|||||||
name: WordPress Playground Tests
|
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:
|
on:
|
||||||
push:
|
# Disable automatic triggers - only run manually if needed for debugging
|
||||||
branches: [ main, feature/* ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ main ]
|
|
||||||
workflow_dispatch:
|
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:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|||||||
22
.github/workflows/sonarcloud.yml
vendored
22
.github/workflows/sonarcloud.yml
vendored
@@ -1,12 +1,24 @@
|
|||||||
name: SonarCloud Analysis
|
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:
|
on:
|
||||||
push:
|
# Only run manually until SONAR_TOKEN is properly configured
|
||||||
branches: [ main, feature/* ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ main ]
|
|
||||||
types: [opened, synchronize, reopened]
|
|
||||||
workflow_dispatch:
|
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:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|||||||
19
.github/workflows/wordpress-tests.yml
vendored
19
.github/workflows/wordpress-tests.yml
vendored
@@ -1,11 +1,22 @@
|
|||||||
name: WordPress Tests
|
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:
|
on:
|
||||||
push:
|
# Disable automatic triggers - only run manually if needed for debugging
|
||||||
branches: [ main, feature/* ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ main ]
|
|
||||||
workflow_dispatch:
|
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:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|||||||
Reference in New Issue
Block a user