Skip to content

Commit

Permalink
CHORE: add gh workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
krsriq committed Sep 27, 2023
1 parent ac6fd58 commit 65e9173
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: PHPUnit Tests

on:
push:
branches: [ "main" ,"switch-to-s2s-oauth-apps-tests"]
pull_request:
branches: [ "main" ,"switch-to-s2s-oauth-apps-tests"]

jobs:
run-tests:

runs-on: ubuntu-latest

steps:
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
php-version: '8.1'
- uses: actions/checkout@v3
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Execute tests via PHPUnit
run: composer test
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@
"mikey179/vfsstream": "@stable"
},
"scripts": {
"test": "Packages/Libraries/phpunit/phpunit/phpunit --bootstrap /Users/GradinaruFelix/Sites/FlirtForschung/DistributionPackages/CodeQ.ZoomApi/Tests/UnitTestBootstrap.php --configuration /Users/GradinaruFelix/Sites/FlirtForschung/DistributionPackages/CodeQ.ZoomApi/Tests/phpunit.xml"
"test": "Packages/Libraries/phpunit/phpunit/phpunit --bootstrap Tests/UnitTestBootstrap.php --configuration Tests/phpunit.xml"
}
}

0 comments on commit 65e9173

Please sign in to comment.