Bump peter-evans/create-pull-request from 6 to 7 #54
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
# This workflow is used for testing the phpcs action of this repository. | |
name: Test action | |
on: pull_request | |
jobs: | |
test: | |
name: Setup php | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v4" | |
- name: Setup PHP, with composer and extensions | |
uses: "shivammathur/setup-php@v2" | |
with: | |
coverage: "none" | |
php-version: '8.3' | |
tools: composer:v2 | |
extensions: dom, curl, libxml, mbstring, zip, pdo, mysql, pdo_mysql, bcmath, gd, exif, iconv | |
- name: Setup Drupal | |
uses: bluehorndigital/[email protected] | |
with: | |
version: '^10.2' | |
path: drupal | |
- name: Install phpcs | |
working-directory: drupal | |
run: composer require squizlabs/php_codesniffer dealerdirect/phpcodesniffer-composer-installer | |
- name: Copy phpcs rules | |
uses: canastro/[email protected] | |
with: | |
source: "test-assets/phpcs.xml" | |
target: "drupal/phpcs.xml" | |
- name: Run phpcs | |
uses: ./ | |
with: | |
path: drupal | |
reviewdog_token: ${{ secrets.GITHUB_TOKEN }} |