Error code 128 #348
Replies: 1 comment
-
Thanks for reporting. In your specific case the problem looks like this:
As mentioned in the docs, if possible we suggest running linter/fixers on the However, the project you're working on could use the The updated workflow would look like this name: Run tests & format
on:
workflow_dispatch:
pull_request:
+ pull_request_target:
push:
branches:
- main
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nanasess/setup-php@master
with:
php-version: 8.1
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress
- name: Composer dump-autoload
run: composer dump-autoload
- name: Execute tests (Unit and Feature tests) via PHPUnit
run: vendor/phpunit/phpunit/phpunit Tests
format:
name: Fix PHP Coding Style
runs-on: ubuntu-latest
+ permissions:
+ contents: write
steps:
- uses: actions/checkout@v4
with:
+ # Checkout the fork/head-repository and push changes to the fork.
+ # If you skip this, the base repository will be checked out and changes
+ # will be committed to the base repository!
+ repository: ${{ github.event.pull_request.head.repo.full_name }}
+ # Checkout the branch made in the fork. Will automatically push changes
+ # back to this branch.
+ ref: ${{ github.head_ref }}
- uses: nanasess/setup-php@master
with:
php-version: 8.1
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress
- name: Composer dump-autoload
run: composer dump-autoload
- name: Run php-cs-fixer
run: ./vendor/bin/php-cs-fixer fix
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Apply php-cs-fixer changes |
Beta Was this translation helpful? Give feedback.
-
Hi I get this kind of error:
I don't know how this fix this kind of issue.
I work on PR that is open-source. Link to the PR
Beta Was this translation helpful? Give feedback.
All reactions