Skip to content

Commit

Permalink
Merge pull request #1442 from GravityPDF/fix-composer-install-ga
Browse files Browse the repository at this point in the history
Add GITHUB_TOKEN to GitHub Actions
  • Loading branch information
jakejackson1 authored Jan 1, 2023
2 parents a2a2e87 + 52cbb73 commit b9671fd
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
with:
php-version: 7.4
tools: composer, cs2pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Log debug information
run: |
Expand All @@ -38,6 +40,8 @@ jobs:
run: |
composer install --prefer-dist --no-suggest --no-progress --no-ansi --no-interaction
echo "${PWD}/vendor/bin" >> $GITHUB_PATH
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Log PHPCS debug information
run: composer run lint -- -i
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get tag
id: tag
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/end-to-end-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Node JS
uses: actions/setup-node@v3
Expand Down Expand Up @@ -92,6 +94,8 @@ jobs:
- name: Install / Setup Gravity PDF + WordPress
run: |
yarn env:install
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run E2E tests
run: yarn test:e2e:headless --stop-on-first-fail
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/phpunit.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Node JS
uses: actions/setup-node@v2
Expand Down Expand Up @@ -116,11 +118,15 @@ jobs:
if: ${{ ! matrix.report }}
run: |
yarn env:install
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install / Setup Gravity PDF + WordPress
if: ${{ matrix.report }}
run: |
PHP_ENABLE_XDEBUG=true yarn env:install
PHP_ENABLE_XDEBUG=true yarn env:install
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run PHPUnit tests
if: ${{ ! matrix.multisite }}
Expand All @@ -136,7 +142,7 @@ jobs:
- name: Generate Code Coverage Report for PHP
if: ${{ matrix.report }}
run: |
run: |
yarn run test:php --do-not-cache-result --verbose --coverage-clover=/var/www/html/wp-content/plugins/gravity-pdf/tmp/coverage/report-xml/php-coverage1.xml
yarn run test:php --group ajax --do-not-cache-result --verbose --coverage-clover=/var/www/html/wp-content/plugins/gravity-pdf/tmp/coverage/report-xml/php-coverage2.xml
Expand Down

0 comments on commit b9671fd

Please sign in to comment.