Skip to content

[php 7.4] Run PHPUnit + Mess-Detector + CS-Fixer #69

[php 7.4] Run PHPUnit + Mess-Detector + CS-Fixer

[php 7.4] Run PHPUnit + Mess-Detector + CS-Fixer #69

Workflow file for this run

name: "Test & lint PHP 7.4"
run-name: "[php 7.4] Run PHPUnit + Mess-Detector + CS-Fixer"
on:
push:
permissions:
contents: read # for checkout
jobs:
run_tests_php74:
name: "[php 7.4] tests & validation"
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
- name: Setup PHP 7.4
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- name: Install composer dependencies
uses: php-actions/composer@v6
- name: Test the console
run: php ./bin/markdown-extended
- name: Run CS-Fixer
uses: php-actions/composer@v6
with:
command: run cs-fixer-ci
- name: Run Mess-Detector
uses: php-actions/composer@v6
with:
command: run messdetector-with-baseline
- name: Code Climate Setup
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
- name: Run unit tests
run: |
php bin/phpunit --coverage-clover clover.xml --testdox
./cc-test-reporter after-build -t clover --exit-code $?