1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00
appwrite/.github/workflows/benchmark.yml

36 lines
1 KiB
YAML
Raw Normal View History

2024-07-19 07:44:55 +12:00
name: "Benchmarks"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on: [pull_request]
jobs:
2024-07-19 07:49:49 +12:00
benchmarking:
2024-07-19 07:44:55 +12:00
name: Benchmark
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- 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
2024-07-19 07:49:49 +12:00
sudo apt update
sudo apt install oha
- name: Preparing environment
run: |
sed -i 's/traefik/localhost/g' .env
docker compose up -d
sleep 10
2024-07-19 07:44:55 +12:00
- name: Benchmark
run: |
oha -z 180s http://localhost:9501/v1/health/version -j > benchmark.json
- name: Save results
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: benchmark.json
path: benchmark.json
retention-days: 7