diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..805499d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,35 @@ +name: Ejecutar Tests Laravel + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout del código fuente + uses: actions/checkout@v2 + + - name: Configurar PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.1' + + - name: Instalar dependencias + run: composer update + + - name: Instalar dependencias + run: composer install + + - name: Copiar archivo .env + run: cp .env.example .env + + - name: Generar clave de aplicación + run: php artisan key:generate + + - name: Ejecutar tests + run: php artisan test --filter ConverterVolumeTest