test: add e2e testing base on docker compose

This commit is contained in:
rick
2024-06-20 01:29:43 +00:00
committed by Rick
parent 0f6d84dab2
commit 630a1fd3cd
5 changed files with 113 additions and 0 deletions

21
.github/workflows/e2e.yaml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: E2E
on:
pull_request:
branches:
- main
concurrency:
group: ${{github.workflow}} - ${{github.ref}}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: E2E Testing
run: |
sudo curl -L https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
sudo chmod u+x /usr/local/bin/docker-compose
docker compose up --build testing --exit-code-from testing --remove-orphans