E2E Testing - Build Script - Fail with message if not PowerShell Core #144
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: End to End Test - .NET Isolated/Func V4 | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main, dev, andystaples/add-gh-action-for-e2e-tests ] | |
paths: | |
- 'src/**' | |
- 'test/e2e/**' | |
pull_request: | |
branches: [ main, dev, andystaples/add-gh-action-for-e2e-tests ] | |
paths: | |
- 'src/**' | |
- 'test/e2e/**' | |
jobs: | |
e2e-azurestorage: | |
runs-on: ubuntu-latest | |
env: | |
E2E_TEST_DURABLE_BACKEND: 'AzureStorage' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.x | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Set up Node.js (needed for Azurite) | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' # Azurite requires at least Node 18 | |
- name: Setup E2E tests | |
shell: pwsh | |
run: | | |
.\test\e2e\Tests\build-e2e-test.ps1 | |
- name: Build | |
working-directory: test/e2e/Tests | |
run: dotnet build | |
- name: Run E2E tests | |
working-directory: test/e2e/Tests | |
run: dotnet test --filter AzureStorage!=Skip | |
e2e-mssql: | |
runs-on: ubuntu-latest | |
env: | |
E2E_TEST_DURABLE_BACKEND: "MSSQL" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.x | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Setup E2E tests | |
shell: pwsh | |
run: | | |
$env:MSSQL_SA_PASSWORD = "$([Guid]::NewGuid())" | |
.\test\e2e\Tests\build-e2e-test.ps1 -StartMSSqlContainer | |
- name: Build | |
working-directory: test/e2e/Tests | |
run: dotnet build | |
- name: Run E2E tests | |
working-directory: test/e2e/Tests | |
run: dotnet test --filter MSSQL!=Skip |