-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move integration tests into a reusable action to simplify testing the…
…m, introduce setup-python to install python v2 in the runner. add taskfile for testing github actions
- Loading branch information
Showing
7 changed files
with
80 additions
and
45 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,5 @@ | ||
version: 3 | ||
tasks: | ||
integration-test: | ||
cmds: | ||
- act -j integration-test -r |
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,30 @@ | ||
name: "Run integration tests" | ||
|
||
inputs: | ||
hostname: | ||
description: "Target host to run the integration tests against" | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
# standard github setup python does not support version 2 anymore :( | ||
- uses: MatteoH2O1999/setup-python@v1 | ||
with: | ||
python-version: '2.x' | ||
- name: Build dotnet | ||
run: dotnet build | ||
- name: Ensure browsers are installed | ||
run: pwsh ./backend/Testing/bin/Debug/net7.0/playwright.ps1 install --with-deps | ||
- name: Integration Test | ||
env: | ||
TEST_SERVER_HOSTNAME: ${{ inputs.hostname }} | ||
TEST_STANDARD_HG_HOSTNAME: hg-${{ inputs.hostname }} | ||
TEST_RESUMABLE_HG_HOSTNAME: resumable-${{ inputs.hostname }} | ||
run: dotnet test --logger trx --results-directory ./testresults --filter "Category=Integration" | ||
- name: Upload test results | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
if: always() && !env.act | ||
with: | ||
check_name: Integration Test | ||
files: ./testresults/*.trx |
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,11 @@ | ||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
integration-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/integration | ||
with: | ||
hostname: staging.languagedepot.org |
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
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
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
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