Add GitHub Action for E2E tests #39
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 -SkipStorageEmulator | |
- name: Build | |
working-directory: test/e2e/Tests | |
run: dotnet build | |
# Install Azurite | |
- 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: Install Azurite | |
run: npm install -g azurite | |
- name: Run E2E tests | |
working-directory: test/e2e/Tests | |
run: azurite --silent --blobPort 10000 --queuePort 10001 --tablePort 10002 & dotnet test |