forked from Webperf-se/webperf_core
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (46 loc) · 1.61 KB
/
manual-start-test.yml
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
name: "Manual - Run test against url"
on:
workflow_dispatch:
inputs:
url:
description: 'Webpage url to test'
required: true
default: 'https://webperf.se/'
type: string
test:
description: 'Test to run, comma separated list of numbers'
required: true
default: '1,2,4,5,6,7,9,10,15,20,21,22,23,24,25,26'
type: string
details:
description: 'Setting general.review.details'
required: true
default: 'true'
type: string
data:
description: 'Setting general.review.data'
required: true
default: 'false'
type: string
env:
TEST_TAG: webperfse/webperf-core:test
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup QEMU # used to allow multiplatform docker builds
uses: docker/setup-qemu-action@v3
- name: Setup Docker Buildx # used to allow multiplatform docker builds
uses: docker/setup-buildx-action@v3
- name: Build the Docker image # used to allow multiplatform docker builds
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64
load: true
tags: ${{ env.TEST_TAG }}
- name: Test ${{ github.event.inputs.test }} for ${{ github.event.inputs.url }}
run: |
testresult=$(docker run ${{ env.TEST_TAG }} python default.py -t ${{ github.event.inputs.test }} -r --setting general.review.details=${{ github.event.inputs.details }} --setting general.review.data=${{ github.event.inputs.data }} -u ${{ github.event.inputs.url }})
echo "$testresult"