Fix HTML encoding in task name #88
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4.33' | |
extensions: mbstring, sqlite3 | |
- name: Install dependencies | |
run: composer install --no-interaction | |
- name: Create .env file | |
run: | | |
cp .env.example .env | |
echo "DB_CONNECTION=${{ vars.DB_CONNECTION }}" >> .env | |
echo "DB_HOST=${{ vars.DB_HOST }}" >> .env | |
echo "DB_PORT=${{ vars.DB_PORT }}" >> .env | |
echo "DB_DATABASE=${{ vars.DB_DATABASE }}" >> .env | |
echo "DB_USERNAME=${{ vars.DB_USERNAME }}" >> .env | |
echo "DB_PASSWORD=${{ vars.DB_PASSWORD }}" >> .env | |
# Ajoutez autant de variables que nécessaire | |
env: | |
DB_CONNECTION: ${{ vars.DB_CONNECTION }} | |
DB_HOST: ${{ vars.DB_HOST }} | |
DB_PORT: ${{ vars.DB_PORT }} | |
DB_DATABASE: ${{ vars.DB_DATABASE }} | |
DB_USERNAME: ${{ vars.DB_USERNAME }} | |
DB_PASSWORD: ${{ vars.DB_PASSWORD }} | |
- name: Generate application key | |
run: php artisan key:generate | |
- name: Run tests | |
run: php artisan test |