This repository was archived by the owner on Oct 23, 2024. It is now read-only.
Money validator #3
This file contains hidden or 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: Run Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
extensions: mysqli | |
- name: Install Composer dependencies | |
working-directory: ./code | |
run: composer install --prefer-dist --no-progress | |
- name: Copy .env.example to .env | |
working-directory: ./code | |
run: cp .env.example .env | |
- name: Generate app key | |
working-directory: ./code | |
run: php artisan key:generate | |
- name: Run database migrations | |
working-directory: ./code | |
run: php artisan migrate | |
- name: Run tests | |
working-directory: ./code | |
run: vendor/bin/phpunit |