Skip to content

Commit

Permalink
Update NCC workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Netkas committed Sep 24, 2024
1 parent e333821 commit d4f7b08
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/ncc_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,26 +66,21 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Check for phpunit.xml
id: check
run: |
if [ -f phpunit.xml ]; then
echo "phpunit-exists=true" >> $GITHUB_ENV
echo "::set-output name=phpunit-exists::true"
else
echo "phpunit-exists=false" >> $GITHUB_ENV
echo "::set-output name=phpunit-exists::false"
fi
- name: Set output
id: set-output
run: echo "::set-output name=phpunit-exists::$(grep 'phpunit-exists' $GITHUB_ENV | cut -d '=' -f 2)"

test:
needs: [build, check-phpunit]
runs-on: ubuntu-latest
container:
image: php:8.3
if: ${{ needs.check-phpunit.outputs.phpunit-exists == 'true' }}
if: needs.check-phpunit.outputs.phpunit-exists == 'true'

steps:
- name: Checkout repository
Expand Down

0 comments on commit d4f7b08

Please sign in to comment.