simo-benedikt-schaller is testing Zeus on GitHub Actions π #23
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
name: Build Zeus Framework and run tests | |
run-name: ${{ github.actor }} is testing Zeus on GitHub Actions π | |
on: [push] | |
jobs: | |
build-and-test: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: composer install --no-interaction --no-dev --prefer-dist | |
# - name: Run tests | |
# run: php "build/phpunit-9.5.6.phar" --configuration tests/phpunit.xml | |
- name: Run tests with php8.1 | |
uses: php-actions/phpunit@v3 | |
with: | |
version: '9.6' | |
php_version: '8.1' | |
php_extensions: "xdebug intl" #pcov | |
configuration: tests/phpunit.xml | |
coverage_clover: "tests/results/clover.xml" | |
coverage_html: "tests/results/html" | |
args: --coverage-text --coverage-clover tests/results/clover.xml --coverage-html tests/results/html | |
env: | |
XDEBUG_MODE: coverage | |
# - name: Run tests with php8.2 | |
# uses: php-actions/phpunit@v3 | |
# with: | |
# version: '9.6' | |
# php_version: '8.2' | |
# php_extensions: "xdebug intl" #pcov | |
# configuration: tests/phpunit.xml | |
# coverage_clover: "tests/results/clover.xml" | |
# coverage_html: "tests/results/html" | |
# args: --coverage-text --coverage-clover tests/results/clover.xml --coverage-html tests/results/html | |
# env: | |
# XDEBUG_MODE: coverage | |
- name: List files in tests/results | |
run: | | |
ls -lah ${{ github.workspace }}/tests/results/ | |
- name: List files in the repository | |
run: | | |
ls -lah ${{ github.workspace }} | |
# - name: Coveralls | |
# uses: coverallsapp/github-action@v2 | |
- name: Coveralls | |
run: php build/php-coveralls.phar -v -c .coveralls.yaml --root_dir ${{ github.workspace }} | |
# - name: Run SonarCloud | |
# uses: sonarsource/sonarcloud-github-action@master | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
# demo: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - run: echo "π The job was automatically triggered by a ${{ github.event_name }} event." | |
# - run: echo "π§ This job is now running on a ${{ runner.os }} server hosted by GitHub!" | |
# - run: echo "π The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | |
# - name: Check out repository code | |
# uses: actions/checkout@v4 | |
# - run: echo "π‘ The ${{ github.repository }} repository has been cloned to the runner." | |
# - run: echo "π₯οΈ The workflow is now ready to test your code on the runner." | |
# - name: List files in the repository | |
# run: | | |
# ls ${{ github.workspace }} | |
# - run: echo "π This job's status is ${{ job.status }}." | |