Skip to content

simo-benedikt-schaller is testing Zeus on GitHub Actions πŸš€ #23

simo-benedikt-schaller is testing Zeus on GitHub Actions πŸš€

simo-benedikt-schaller is testing Zeus on GitHub Actions πŸš€ #23

Workflow file for this run

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 }}."