Skip to content

Commit

Permalink
ci: add basic testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed May 26, 2024
1 parent ed56ecc commit 13f90ac
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,24 @@ jobs:
steps:
- name: Checkout source
id: source
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
uses: actions/checkout@v4

- name: Setup php
id: php
uses: shivammathur/setup-php@v2
with:
php-version: "7.4"

- name: Install generator
run: |
npm install @openapitools/openapi-generator-cli -g
- name: Run install
id: deps
run: composer install

- name: Run test
id: test
run: vendor/bin/phpunit

...
2 changes: 1 addition & 1 deletion hack/generate-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SPEC_VERSION="1.0.0-alpha1"
SPEC_DOWNLOAD=${SPEC:-https://dl.gopad.eu/openapi/${SPEC_VERSION}.yml}

echo "> deleteing apis and models"
rm -rf lib test
rm -rf lib

if hash openapi-generator-cli 2>/dev/null; then
openapi-generator-cli \
Expand Down

0 comments on commit 13f90ac

Please sign in to comment.