Skip to content

Commit

Permalink
[CI] Save updated map as an artifact (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
mondrake authored Nov 2, 2024
1 parent 3840fd5 commit acc8f4a
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/php-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
- php-version: "8.3"
php-unit-args: "-c phpunit.xml"
- php-version: "8.4"
php-unit-args: "-c phpunit.xml --display-deprecations"
php-unit-args: "-c phpunit.xml"
- php-version: "8.5"
php-unit-args: "-c phpunit.xml --display-deprecations"
php-unit-args: "-c phpunit.xml --fail-on-deprecation --fail-on-phpunit-deprecation"

steps:

Expand Down Expand Up @@ -56,8 +56,21 @@ jobs:
files: coverage.xml

- name: Mapping test
if: ${{ matrix.php-version == 8.1 }}
id: mapTest
continue-on-error: true
if: ${{ matrix.php-version == 8.1 }}
run: |
php ./bin/fileeye-mimemap --version
php ./bin/fileeye-mimemap update --diff --fail-on-diff --ansi
- name: Map update
id: mapUpdate
if: ${{ steps.mapTest.outcome == 'failure' }}
run: php ./bin/fileeye-mimemap update --ansi

- name: Map artifact
if: ${{ steps.mapTest.outcome == 'failure' && steps.mapUpdate.outcome == 'success' }}
uses: actions/upload-artifact@v4
with:
name: map
path: src/Map/DefaultMap.php

0 comments on commit acc8f4a

Please sign in to comment.