Change project settings #23
Workflow file for this run
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: Run Tests with Composer | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
Test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run tests with Docker Compose | |
uses: cloudposse/github-action-docker-compose-test-run@main | |
with: | |
file: docker-compose.yml | |
service: encurtador | |
command: | | |
/bin/sh -c " | |
composer install && | |
cp .env.example .env && | |
php bin/hyperf.php migrate && | |
composer test | |
" |