madbob/GASdottoNG

View on GitHub
.github/workflows/test.yml

Summary

Maintainability
Test Coverage
name: Tests
on: [push]

jobs:
  phpunit:
    name: PHPUnit
    runs-on: ubuntu-latest
    steps:

      - name: checkout repo content
        uses: actions/checkout@v2

      - name: setup php
        uses: shivammathur/setup-php@v2
        with:
          php-version: 8.1

      - name: running tests
        run: |
          cd code
          composer install --no-interaction --no-progress --prefer-dist
          sudo locale-gen it_IT.UTF-8
          sudo update-locale LANG=it_IT.UTF-8
          cp .env.example .env
          php artisan key:generate
          php vendor/bin/phpunit
          php vendor/bin/phpstan