-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #556 from Webperf-se/github-actions-manual
GitHub Actions - Manually start test for provided url and test number
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
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: 'true' | ||
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 -s ${{ github.event.inputs.details }} -u ${{ github.event.inputs.url }}) | ||
echo "$testresult" |