Skip to content

Commit

Permalink
Try to use the existing workflow together with a composer script
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuench committed Nov 7, 2023
1 parent b3f94d6 commit d396f47
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ permissions:
contents: write

jobs:
run-unit-tests:
# TODO: Add the right Github Action here
#uses: mage-os/infrastructure/.github/workflows/unit-tests.yml@main

- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest --no-interaction --no-scripts

- name: Run unit tests
run: vendor/bin/phpunit
unit-test:
strategy:
matrix:
php_version:
- 7.4
- 8.1
- 8.2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: mage-os/github-actions/unit-test@main
with:
php_version: ${{ matrix.php_version }}
composer_auth: ${{ secrets.COMPOSER_AUTH }}
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
"MageOS\\GraphQlPlayground\\": ""
}
},
"scripts": {
"test": "phpunit"
},
"config": {
"allow-plugins": {
"magento/composer-dependency-version-audit-plugin": false,
Expand Down

0 comments on commit d396f47

Please sign in to comment.