OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
firebase
/
vendor
/
kreait
/
firebase-php
/
.github
/
workflows
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/12/2024 10:34:12 AM
rwxr-xr-x
📄
integration-tests.yml
2.24 KB
08/12/2024 10:34:12 AM
rw-r--r--
📄
tests.yml
2.23 KB
08/12/2024 10:34:12 AM
rw-r--r--
Editing: integration-tests.yml
Close
name: Integration Tests on: push: pull_request: workflow_dispatch: jobs: integration-tests: name: Integration Tests runs-on: ubuntu-latest # We want integration tests only to run on the original repo and not on internal PRs if: (github.repository_owner == 'kreait' || github.repository_owner == 'beste-access') && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) env: php-version: '8.0' extensions: ctype, dom, grpc, json, mbstring, openssl, xml, zip, zlib key: cache-integration-5x-${{ matrix.php }}-v1 steps: - name: Checkout code uses: actions/checkout@v2 - name: Setup cache environment id: extcache uses: shivammathur/cache-extensions@v1 with: php-version: ${{ env.php-version }} extensions: ${{ env.extensions }} key: ${{ env.key }} - name: Cache extensions uses: actions/cache@v1 with: path: ${{ steps.extcache.outputs.dir }} key: ${{ steps.extcache.outputs.key }} restore-keys: ${{ steps.extcache.outputs.key }} - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ env.php-version }} extensions: ${{ env.extensions }} tools: composer, pecl coverage: xdebug - name: Setup problem matchers for PHP run: echo "::add-matcher::${{ runner.tool_cache }}/php.json" - uses: "ramsey/composer-install@v1" - name: Setup Problem Matchers for PHPUnit run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - name: Run Integration Tests env: TEST_FIREBASE_CREDENTIALS: ${{secrets.TEST_FIREBASE_CREDENTIALS}} TEST_REGISTRATION_TOKENS: ${{secrets.TEST_REGISTRATION_TOKENS}} TEST_FIREBASE_RTDB_URI: ${{secrets.TEST_FIREBASE_RTDB_URI}} run: vendor/bin/phpunit --testsuite=integration --coverage-clover=coverage.xml --log-junit=test-report.xml --verbose - name: Upload code coverage uses: codecov/codecov-action@v2 with: flags: integration if: github.repository_owner == 'kreait'