Skip to content

fix/main: fix wrong import on mail test #8

fix/main: fix wrong import on mail test

fix/main: fix wrong import on mail test #8

Workflow file for this run

name: tests
on: [push]
jobs:
test:
name: PHPUnit
runs-on: ubuntu-latest
env:
DB_DATABASE: test_db
DB_USER: root
DB_PASSWORD: root
steps:
- name: checkout repo
uses: actions/checkout@v3
- name: setup enviroment
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Install dependencies
run: composer install
- name: Generate key
run: php artisan key:generate
- name: Clear Config
run: php artisan config:clear
- name: Set up MySQL
run: |
sudo /etc/init.d/mysql start
mysql -e 'CREATE DATABASE ${{ env.DB_DATABASE }};' -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }}
- name: migrate tables
run: php artisan migrate -v
- name: Laravel PHPUnit
run: php artisan test --coverage-clover ./coverage.xml
- name: Upload coverage reports to Codacy
uses: codacy/codacy-coverage-reporter-action@v1

Check failure on line 46 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 46
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./coverage.xml