Fix constant check #20
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
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions | |
name: Main | |
on: | |
pull_request: | |
jobs: | |
tests_71: | |
runs-on: "ubuntu-latest" | |
name: "PHP 7.1 Unit Tests" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v3" | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
coverage: "xdebug" | |
php-version: "7.1" | |
tools: composer:v2 | |
- name: "Install dependencies" | |
run: | | |
composer require php-coveralls/php-coveralls:^2.2 --dev --no-update | |
composer update --no-progress --prefer-dist | |
- name: "Tests" | |
run: "php vendor/bin/phpunit --coverage-clover build/logs/clover.xml" | |
tests: | |
runs-on: "ubuntu-latest" | |
name: "PHP ${{ matrix.php-version }} Unit Tests" | |
strategy: | |
matrix: | |
php-version: | |
- "7.2" | |
- "7.3" | |
- "7.4" | |
- "8.0" | |
- "8.1" | |
- "8.2" | |
- "8.3" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v3" | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
coverage: "none" | |
php-version: "${{ matrix.php-version }}" | |
ini-file: "development" | |
tools: composer:v2 | |
- name: "Install dependencies" | |
run: "composer update --no-progress --prefer-dist ${{ matrix.flags }}" | |
- name: "PHPUnit" | |
run: "php vendor/bin/phpunit" | |
# These tests have been failing since the original UTF-8 fix due to large numbers of | |
# expectations differences that are cumbersome to fix. Skipping them since there are | |
# also the unit tests above and tests in joern to test the project. | |
# test_old_73_80: | |
# runs-on: "ubuntu-latest" | |
# name: "PHP 7.3 Code on PHP 8.0 Integration Tests" | |
# steps: | |
# - name: "Checkout" | |
# uses: "actions/checkout@v3" | |
# - name: "Install PHP" | |
# uses: "shivammathur/setup-php@v2" | |
# with: | |
# coverage: "none" | |
# php-version: "8.0" | |
# ini-file: "development" | |
# tools: composer:v2 | |
# - name: "Install PHP 8 dependencies" | |
# run: "composer update --no-progress --prefer-dist" | |
# - name: "Tests" | |
# run: "test_old/run-php-src.sh 7.3.21" | |
# test_old_80_71: | |
# runs-on: "ubuntu-latest" | |
# name: "PHP 8.1 Code on PHP 7.1 Integration Tests" | |
# steps: | |
# - name: "Checkout" | |
# uses: "actions/checkout@v3" | |
# - name: "Install PHP" | |
# uses: "shivammathur/setup-php@v2" | |
# with: | |
# coverage: "none" | |
# php-version: "7.1" | |
# tools: composer:v2 | |
# - name: "Install PHP 8 dependencies" | |
# run: "composer update --no-progress --prefer-dist" | |
# - name: "Tests" | |
# run: "test_old/run-php-src.sh 8.1.6" |