The two different PR and Merge jobs were introduced to be able to test the main branch against the latest release. However, this is now included in the PR job, too, so no need for the two separate jobs anymore.
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
name: Loadtest
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
- v*
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
# Terminate all previous runs of the same workflow and branch, except for main
|
|
cancel-in-progress: "${{ !(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) }}"
|
|
|
|
jobs:
|
|
Loadtest-Nix:
|
|
name: Loadtest (Nix)
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup Nix Environment
|
|
uses: ./.github/actions/setup-nix
|
|
with:
|
|
tools: loadtest
|
|
- uses: actions-ecosystem/action-get-latest-tag@v1
|
|
id: get-latest-tag
|
|
with:
|
|
semver_only: true
|
|
- name: Run loadtest
|
|
run: |
|
|
postgrest-loadtest-against main ${{ steps.get-latest-tag.outputs.tag }}
|
|
postgrest-loadtest-report > loadtest/loadtest.md
|
|
- name: Upload report
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: loadtest.md
|
|
path: loadtest/loadtest.md
|
|
if-no-files-found: error
|