-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (47 loc) · 1.28 KB
/
test-load.yaml
File metadata and controls
51 lines (47 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
concurrency:
group: 'load-tests-${{ github.ref }}'
cancel-in-progress: false
on:
push:
branches:
- development/**
workflow_dispatch:
inputs:
environment:
type: environment
default: production
name: test-load
jobs:
load-test:
strategy:
fail-fast: false
matrix:
test:
- host: ubuntu-latest
name: github-hosted
- host: ubuntu-latest
name: github-hosted-container
container: ubuntu
- host: [self-hosted, focal, large]
name: self-hosted
runs-on: ${{ matrix.test.host }}
environment: ${{ inputs.environment || 'production' }}
container: ${{ matrix.test.container }}
name: load tests on ${{ matrix.test.name }}
steps:
- uses: actions/checkout@v3
- name: create multiple files
run: |
mkdir -p artifacts/${{ matrix.test.name }}
for i in {1..20}; do
head -c 1G /dev/urandom > artifacts/${{ matrix.test.name }}/$i.txt
done
shell: bash
- name: Push all files
uses: ./
with:
url: ${{ vars.ARTIFACTS_URL }}
user: ${{ secrets.ARTIFACTS_USER }}
password: ${{ secrets.ARTIFACTS_PASSWORD }}
source: ./artifacts
method: upload