From 3660d9d06b04b9768c926e47adff4d19b48330fe Mon Sep 17 00:00:00 2001 From: Jonas Kaninda Date: Sat, 9 Dec 2023 18:22:29 +0100 Subject: [PATCH] Add Integration test --- .github/workflows/build.yml | 3 +- .github/workflows/integration-tests.yml | 38 +++++++++++++++++++++++ tests/compose.yaml | 40 +++++++++++++++++++++++++ 3 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/integration-tests.yml create mode 100644 tests/compose.yaml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 646976a..2325a54 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -80,5 +80,6 @@ jobs: push: true platforms: linux/amd64,linux/arm64 tags: | - "${{env.BUILDKIT_IMAGE}}:8.3.0-fpm" + "${{env.BUILDKIT_IMAGE}}:8.3.0" + "${{env.BUILDKIT_IMAGE}}:8.3" "${{env.BUILDKIT_IMAGE}}:latest" diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml new file mode 100644 index 0000000..e33337c --- /dev/null +++ b/.github/workflows/integration-tests.yml @@ -0,0 +1,38 @@ +name: Integration Test +on: + push: +jobs: + integration: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Create Laravel project + run: | + composer create-project laravel/laravel laravel + - name: Fix Permission + run: chmod -R 777 ./laravel/storage + - name: Run docker-compose + run: + cp ./tests/compose.yaml compose.yaml && + docker-compose -f "compose.yaml" up -d + - name: Create script.js for K6 test + run: | + touch script.js && cat > script.js <