Manual - Run test against url #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
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 }} -u ${{ github.event.inputs.url }}) | |
echo "$testresult" |