Github Action - Add Token #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Step 1: Checkout the code | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# Step 2: Set up Docker | |
- name: Generate CodeSniffer Report | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: markoshust/magento-php:8.3-fpm-2 | |
options: -v ${{ github.workspace }}:/var/www/html/src/app/code/Auctane | |
run: | | |
composer require --dev magento/magento-coding-standard | |
composer config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true | |
composer install | |
vendor/bin/phpcs --standard=Magento2 --runtime-set ignore_warnings_on_exit 1 /var/www/html/src/app/code/Auctane |