Merge branch 'developer' of github.com:ResidenciaTICBrisa/T2G8-Plugin… #146
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: Testes Automatizados | |
on: | |
push: | |
branches: | |
- main | |
- developer | |
pull_request: | |
branches: | |
- main | |
- developer | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout do código | |
uses: actions/checkout@v2 | |
# Configurar PHP e executar testes do PHPUnit | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
- name: Instalar dependências PHP | |
run: composer install --prefer-dist | |
- name: Executar testes PHP | |
run: vendor/bin/phpunit tests/php/* | |
# Configurar Node.js e executar testes do Jest | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Instalar dependências Node.js | |
run: npm install | |
- name: Executar testes JavaScript | |
run: npm run test:js |