-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: gh actions and workflow for running hurl test scripts
- Loading branch information
Showing
4 changed files
with
68 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,10 @@ | ||
name: "Hurl Setup" | ||
description: "Installs hurl (hurl.dev)" | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- id: install-hurl | ||
shell: bash | ||
run: | | ||
curl --location --remote-name https://github.com/Orange-OpenSource/hurl/releases/download/5.0.1/hurl_5.0.1_amd64.deb | ||
sudo dpkg -i hurl_5.0.1_amd64.deb |
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,23 @@ | ||
name: "Hurl Test" | ||
description: "Runs hurl tests (hurl.dev)" | ||
inputs: | ||
app_host: | ||
description: "The host of the app to test (including the port)" | ||
required: false | ||
default: 'http://localhost:8085' | ||
report_dir: | ||
description: "The directory to store test report in. If not set, hurl will not generate a report." | ||
required: false | ||
default: '' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- id: run-hurl | ||
shell: bash | ||
env: | ||
HURL_app_host: ${{ inputs.app_host }} | ||
HURL_report_dir: ${{ inputs.report_dir }} | ||
run: | | ||
mkdir -p test/hurl/common | ||
curl --location -o test/hurl/common/geox-geoy-example.csv https://gist.githubusercontent.com/rosado/3994e2420857d5c6b0e3bd8dc1488aa1/raw/bf1b52316f66a480a6d116c993ffd57d119094f9/geox-geoy-example.csv | ||
test/hurl/runner.sh |
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,22 @@ | ||
name: Run end-to-end tests | ||
run-name: Run end to end tests on '${{ inputs.host }}' by @${{ github.actor }} | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
host: | ||
required: true | ||
type: string | ||
description: Host to test against (e.g. https://example.com:8080) | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
environment: development | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/hurl-setup | ||
- uses: ./.github/actions/hurl-test | ||
with: | ||
app_host: ${{ inputs.host }} | ||
report_dir: 'hurl-test-report-${{ github.run_number }}' |
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