Skip to content

Commit

Permalink
configure integration action to run commands in a script
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Jul 12, 2023
1 parent ea9b42c commit 1af36f4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/actions/dotnet-integration/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
runs:
using: docker
image: Dockerfile
args:
- sh
- ./.github/actions/dotnet-integration/run-tests.sh
env:
TEST_SERVER_HOSTNAME: ${{ inputs.hostname }}
TEST_STANDARD_HG_HOSTNAME: hg-${{ inputs.hostname }}
Expand Down
4 changes: 4 additions & 0 deletions .github/actions/dotnet-integration/run-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dotnet restore
dotnet build
pwsh backend/Testing/bin/Debug/net7.0/playwright.ps1 install --with-deps
dotnet test --logger trx --results-directory ./testresults --filter Category=Integration
1 change: 1 addition & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
exit 1
- uses: actions/checkout@v3
- uses: ./.github/actions/integration
name: Integration Tests
with:
hostname: staging.languagedepot.org

0 comments on commit 1af36f4

Please sign in to comment.