From bdc4647cbf3502755337ba38010e61691f20cce6 Mon Sep 17 00:00:00 2001 From: Nikola Date: Wed, 13 Mar 2024 11:53:54 +0100 Subject: [PATCH] Create docker_compose.yml file --- .github/workflows/docker_compose.yml | 18 ++++++++++++++++++ .github/workflows/phpunit.yml | 4 ++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/docker_compose.yml diff --git a/.github/workflows/docker_compose.yml b/.github/workflows/docker_compose.yml new file mode 100644 index 0000000..7c6fea7 --- /dev/null +++ b/.github/workflows/docker_compose.yml @@ -0,0 +1,18 @@ +name: Docker Compose + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Build and run Docker Compose + run: | + docker-compose up --build -d diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 151f66f..469dbb0 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -7,7 +7,7 @@ on: branches: [ master ] jobs: - laravel-tests: + project-tests: runs-on: ubuntu-latest @@ -30,7 +30,7 @@ jobs: LARAVEL_BYPASS_ENV_CHECK: 1 run: npm install && npm run dev & - name: Wait for server to start - run: sleep 10s # Adjust this time according to your server startup time + run: sleep 10s - name: Execute tests (Unit and Feature tests) via PHPUnit env: DB_CONNECTION: sqlite