v1.2.1 #507
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 | |
paths: | |
- "**.php" | |
- "**.tsx" | |
- "**.ts" | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup PHP with tools | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "7.4" | |
tools: composer, cs2pr, phpcs | |
- name: Build | |
run: | | |
yarn install | |
composer install | |
- name: Linting the code | |
run: | | |
vendor/bin/phpcs -i | |
vendor/bin/phpcs --config-show | |
npm run lint | |
continue-on-error: true | |
- name: Running the tests | |
run: npm run test |