mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
feat: Adding ci/cd benchmark
This commit is contained in:
parent
18f5a5965e
commit
d0b87fe4ae
1 changed files with 8 additions and 9 deletions
17
.github/workflows/benchmark.yml
vendored
17
.github/workflows/benchmark.yml
vendored
|
|
@ -6,24 +6,23 @@ concurrency:
|
|||
|
||||
on: [pull_request]
|
||||
jobs:
|
||||
lint:
|
||||
benchmarking:
|
||||
name: Benchmark
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Prepare env
|
||||
run: |
|
||||
sed -i 's/traefik/localhost/g' .env
|
||||
docker compose up -d
|
||||
sleep 10
|
||||
- name: Install Oha
|
||||
run: |
|
||||
echo "deb [signed-by=/usr/share/keyrings/azlux-archive-keyring.gpg] http://packages.azlux.fr/debian/ stable main" | sudo tee /etc/apt/sources.list.d/azlux.list
|
||||
sudo wget -O /usr/share/keyrings/azlux-archive-keyring.gpg https://azlux.fr/repo.gpg
|
||||
apt update
|
||||
apt install oha
|
||||
sudo apt update
|
||||
sudo apt install oha
|
||||
- name: Preparing environment
|
||||
run: |
|
||||
sed -i 's/traefik/localhost/g' .env
|
||||
docker compose up -d
|
||||
sleep 10
|
||||
- name: Benchmark
|
||||
run: |
|
||||
oha -z 180s http://localhost:9501/v1/health/version -j > benchmark.json
|
||||
|
|
|
|||
Loading…
Reference in a new issue