Allow PRs to sub-branch to run E2E test automation #9
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: | |
build: | |
runs-on: ubuntu-latest | |
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: | | |
.\test\e2e\Tests\build-e2e-test.ps1 | |
- name: Build | |
working-directory: test/e2e/Tests | |
run: dotnet build | |
- name: Test with the dotnet CLI | |
working-directory: test/e2e/Tests | |
run: dotnet test | |
- name: Run E2E tests | |
working-directory: test/e2e/Tests | |
run: dotnet test |