Code cleanup, expand README, fix some minor bugs #125
This file contains 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: Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
js-wrapper-test: | |
name: "Test JS wrapper" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Use Node.js 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/Hydrogen | |
cache: 'pnpm' | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' | |
- name: Install developer dependencies | |
run: pnpm install | |
- name: Setup and run PHP server for API | |
run: pnpm run php_start | |
- name: Test da code | |
run: pnpm test | |
- name: Kill PHP server | |
run: pnpm run php_stop |