Skip to content

Commit

Permalink
Merge pull request #556 from Webperf-se/github-actions-manual
Browse files Browse the repository at this point in the history
GitHub Actions - Manually start test for provided url and test number
  • Loading branch information
7h3Rabbit authored Jun 26, 2024
2 parents 22c50f3 + 9213c3c commit 1c8fc3f
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/manual-start-test.yml
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"

0 comments on commit 1c8fc3f

Please sign in to comment.