Compare commits
1 Commits
fix/sonarc
...
bugfix/ci-
| Author | SHA1 | Date | |
|---|---|---|---|
| fdebfcb986 |
16
.github/workflows/code-quality.yml
vendored
16
.github/workflows/code-quality.yml
vendored
@@ -27,7 +27,9 @@ jobs:
|
||||
tools: composer:v2
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer install --prefer-dist --no-progress
|
||||
uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # v2.2.0
|
||||
with:
|
||||
composer-options: "--prefer-dist --no-progress"
|
||||
|
||||
- name: Run PHPCS
|
||||
run: composer phpcs
|
||||
@@ -54,7 +56,9 @@ jobs:
|
||||
tools: composer:v2, phpstan
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer install --prefer-dist --no-progress
|
||||
uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # v2.2.0
|
||||
with:
|
||||
composer-options: "--prefer-dist --no-progress"
|
||||
|
||||
- name: Run PHPStan
|
||||
run: composer phpstan
|
||||
@@ -75,7 +79,9 @@ jobs:
|
||||
tools: composer:v2, phpmd
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer install --prefer-dist --no-progress
|
||||
uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # v2.2.0
|
||||
with:
|
||||
composer-options: "--prefer-dist --no-progress"
|
||||
|
||||
- name: Run PHPMD
|
||||
run: composer phpmd
|
||||
@@ -143,10 +149,8 @@ jobs:
|
||||
|
||||
- name: Check if Codacy token is set
|
||||
id: check_codacy_token
|
||||
env:
|
||||
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||
run: |
|
||||
if [ -z "$CODACY_PROJECT_TOKEN" ]; then
|
||||
if [ -z "${{ secrets.CODACY_PROJECT_TOKEN }}" ]; then
|
||||
echo "CODACY_PROJECT_TOKEN is not set, running Codacy without upload"
|
||||
echo "skip_upload=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
|
||||
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
@@ -34,7 +34,12 @@ jobs:
|
||||
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer install --no-dev --optimize-autoloader
|
||||
run: |
|
||||
for i in 1 2 3; do
|
||||
composer install --no-dev --optimize-autoloader --prefer-dist && break
|
||||
echo "Composer install attempt $i failed, retrying in 15s..."
|
||||
sleep 15
|
||||
done
|
||||
|
||||
- name: Create build directory
|
||||
run: |
|
||||
|
||||
4
.github/workflows/sonarcloud.yml
vendored
4
.github/workflows/sonarcloud.yml
vendored
@@ -39,10 +39,8 @@ jobs:
|
||||
|
||||
- name: Check if SonarCloud token is set
|
||||
id: check_token
|
||||
env:
|
||||
SONARCLOUD_GITHUB: ${{ secrets.SONARCLOUD_GITHUB }}
|
||||
run: |
|
||||
if [ -z "$SONARCLOUD_GITHUB" ]; then
|
||||
if [ -z "${{ secrets.SONARCLOUD_GITHUB }}" ]; then
|
||||
echo "SONARCLOUD_GITHUB is not set, skipping SonarCloud analysis"
|
||||
echo "skip=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
|
||||
6
.github/workflows/sync-wiki.yml
vendored
6
.github/workflows/sync-wiki.yml
vendored
@@ -27,10 +27,6 @@ jobs:
|
||||
git clone https://github.com/${{ github.repository }}.wiki.git wiki
|
||||
|
||||
- name: Sync wiki content
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_ACTOR: ${{ github.actor }}
|
||||
GITHUB_REPOSITORY: ${{ github.repository }}
|
||||
run: |
|
||||
# Remove all files from wiki repository except .git
|
||||
find wiki -mindepth 1 -maxdepth 1 -not -name '.git' -exec rm -rf {} \;
|
||||
@@ -54,4 +50,4 @@ jobs:
|
||||
git commit -m "Sync wiki from source repository"
|
||||
|
||||
# Push changes
|
||||
git push https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.wiki.git
|
||||
git push https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.wiki.git
|
||||
|
||||
14
.github/workflows/tests.yml
vendored
14
.github/workflows/tests.yml
vendored
@@ -28,11 +28,10 @@ jobs:
|
||||
extensions: mbstring, intl, zip
|
||||
tools: composer:v2
|
||||
|
||||
- name: Clear Composer Cache
|
||||
run: composer clear-cache
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer install --prefer-dist --no-progress
|
||||
uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # v2.2.0
|
||||
with:
|
||||
composer-options: "--prefer-dist --no-progress"
|
||||
|
||||
- name: Run tests
|
||||
run: ./vendor/bin/phpunit
|
||||
@@ -54,11 +53,10 @@ jobs:
|
||||
extensions: mbstring, intl, zip
|
||||
tools: composer:v2, phpcs
|
||||
|
||||
- name: Clear Composer Cache
|
||||
run: composer clear-cache
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer install --prefer-dist --no-progress
|
||||
uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # v2.2.0
|
||||
with:
|
||||
composer-options: "--prefer-dist --no-progress"
|
||||
|
||||
- name: Run PHPCS
|
||||
run: composer run phpcs
|
||||
|
||||
Reference in New Issue
Block a user