Integration Tests #6
Workflow file for this run
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
name: Integration Tests | |
on: | |
workflow_call: | |
workflow_dispatch: | |
jobs: | |
test: | |
concurrency: test-staging | |
name: ${{ matrix.os }} | |
permissions: | |
checks: write | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
#- windows-latest | |
environment: | |
name: staging | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '7' | |
- uses: MatteoH2O1999/setup-python@v1.5.0 | |
id: python | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
with: | |
python-version: '2.7.18' | |
cache-build: true | |
allow-build: allow | |
- name: Link python | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
sudo ln -s ${{ steps.python.outputs.python-path }} /usr/bin/python2 | |
- name: Dotnet build | |
run: dotnet build | |
- name: Playwright setup | |
run: pwsh backend/Testing/bin/Debug/net7.0/playwright.ps1 install | |
- name: Integration tests | |
env: | |
TEST_SERVER_HOSTNAME: staging.languagedepot.org | |
# this is not a typo, we need to use the lf domain because it has a cert that hg will validate | |
TEST_STANDARD_HG_HOSTNAME: hg-staging.languageforge.org | |
TEST_RESUMABLE_HG_HOSTNAME: resumable-staging.languagedepot.org | |
TEST_PROJECT_CODE: 'sena-3' | |
TEST_DEFAULT_PASSWORD: ${{ secrets.TEST_USER_PASSWORD }} | |
run: dotnet test --output ./artifacts --logger trx --results-directory ./testresults --filter Category=Integration | |
- name: Upload test results | |
uses: EnricoMi/publish-unit-test-result-action/composite@v2 | |
if: always() && !env.act | |
with: | |
check_name: Integration Tests ${{ matrix.os }} | |
files: ./testresults/*.trx | |
- name: Upload playwright results | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: playwright-traces-${{ matrix.os }} | |
path: ./artifacts/playwright-traces |