codecov badge test (#36) #13
This file contains hidden or 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: Test Neo4j Aura | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: # Allows manual trigger | |
concurrency: | |
group: neo4j-aura-test-main | |
cancel-in-progress: true | |
jobs: | |
tests-aura: | |
name: Run PHPUnit Tests with Neo4j Aura | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
tools: composer, xdebug | |
- name: Cache Composer dependencies | |
uses: actions/cache@v3 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Install dependencies | |
run: composer install --no-progress --prefer-dist | |
- name: Run Tests | |
env: | |
NEO4J_ADDRESS: ${{ secrets.NEO4J_ADDRESS }} | |
NEO4J_USERNAME: ${{ secrets.NEO4J_USERNAME }} | |
NEO4J_PASSWORD: ${{ secrets.NEO4J_PASSWORD }} | |
run: vendor/bin/phpunit --configuration phpunit.dist.xml ./tests |