Skip to content

Merge branch 'developer' of github.com:ResidenciaTICBrisa/T2G8-Plugin… #146

Merge branch 'developer' of github.com:ResidenciaTICBrisa/T2G8-Plugin…

Merge branch 'developer' of github.com:ResidenciaTICBrisa/T2G8-Plugin… #146

Workflow file for this run

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