Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.2 to 7.0.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/de0fac2e4500dabe0009e67214ff5f5447ce83dd...9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Roman Perekhod <2403905@gmail.com>
55 lines
1.6 KiB
YAML
55 lines
1.6 KiB
YAML
name: k6 Load Test
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
schedule:
|
|
- cron: '0 1 * * *'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: k6-load-test-server
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
k6-load-test:
|
|
name: k6-load-test
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: owncloudci/alpine:latest
|
|
if: >-
|
|
github.event_name == 'schedule' ||
|
|
github.event_name == 'workflow_dispatch' ||
|
|
(github.event_name == 'pull_request' &&
|
|
contains(github.event.pull_request.title || '', 'k6-test'))
|
|
env:
|
|
SSH_OCIS_REMOTE: ${{ secrets.SSH_OCIS_REMOTE }}
|
|
SSH_OCIS_USERNAME: ${{ secrets.SSH_OCIS_USERNAME }}
|
|
SSH_OCIS_PASSWORD: ${{ secrets.SSH_OCIS_PASSWORD }}
|
|
TEST_SERVER_URL: ${{ secrets.TEST_SERVER_URL }}
|
|
SSH_K6_REMOTE: ${{ secrets.SSH_K6_REMOTE }}
|
|
SSH_K6_USERNAME: ${{ secrets.SSH_K6_USERNAME }}
|
|
SSH_K6_PASSWORD: ${{ secrets.SSH_K6_PASSWORD }}
|
|
OCIS_COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
|
|
steps:
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
|
|
- name: Install SSH dependencies
|
|
run: apk add --no-cache openssh-client sshpass
|
|
|
|
- name: Run k6 load tests
|
|
if: ${{ !cancelled() }}
|
|
run: sh tests/config/drone/run_k6_tests.sh
|
|
|
|
- name: Retrieve OCIS logs
|
|
if: ${{ !cancelled() }}
|
|
run: sh tests/config/drone/run_k6_tests.sh --ocis-log
|
|
|
|
- name: Show Grafana dashboard link
|
|
if: ${{ !cancelled() }}
|
|
run: |
|
|
echo "Grafana Dashboard: https://grafana.k6.infra.owncloud.works"
|