feat(junit): add junit report #117
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
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: ~ | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php-version: ["8.3"] | |
composer-flags: [""] | |
name: [""] | |
include: | |
- php-version: "8.2" | |
composer-flags: "--prefer-lowest" | |
name: "(prefer lowest dependencies)" | |
name: Tests PHP ${{ matrix.php-version }} ${{ matrix.name }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: setup | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
- name: composer install | |
run: composer update --prefer-dist --no-interaction ${{ matrix.composer-flags }} | |
- name: Build docker | |
run: docker build -t httpbin . | |
- name: Run docker | |
run: docker run -d --rm -p 8081:80 httpbin | |
- name: tests | |
run: bin/asynit tests --report report/asynit.xml | |
- name: Test Report | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() # run this step even if previous step failed | |
with: | |
name: Asynit Tests ${{ matrix.php-version }} | |
path: report/asynit.xml | |
reporter: java-junit | |