ci: loadtest commits to main against latest release
Introduces loadtest job for main branch that runs loadtest against latest release
This commit is contained in:
committed by
Steve Chavez
parent
2888f351d1
commit
30474c424c
@@ -11,8 +11,9 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Loadtest-Nix:
|
Loadtest-PR-Nix:
|
||||||
name: Loadtest (Nix)
|
name: Loadtest PR (Nix)
|
||||||
|
if: ${{ github.event_name == 'pull_request' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -32,3 +33,31 @@ jobs:
|
|||||||
name: loadtest.md
|
name: loadtest.md
|
||||||
path: loadtest/loadtest.md
|
path: loadtest/loadtest.md
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
|
Loadtest-Merge-Nix:
|
||||||
|
name: Loadtest Merge (Nix)
|
||||||
|
if: ${{ github.event_name == 'merge' && github.ref == 'refs/heads/main' }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- uses: actions-ecosystem/action-get-latest-tag@v1
|
||||||
|
id: get-latest-tag
|
||||||
|
with:
|
||||||
|
semver_only: true
|
||||||
|
- name: Setup Nix Environment
|
||||||
|
uses: ./.github/actions/setup-nix
|
||||||
|
with:
|
||||||
|
tools: loadtest
|
||||||
|
- name: Run loadtest
|
||||||
|
run: |
|
||||||
|
postgrest-loadtest-against ${{ steps.get-latest-tag.outputs.tag }}
|
||||||
|
postgrest-loadtest-report > loadtest/loadtest.md
|
||||||
|
- name: Upload report
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: loadtest.md
|
||||||
|
path: loadtest/loadtest.md
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
Reference in New Issue
Block a user