-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Action for E2E tests (#3017)
* Add GitHub Action for E2E tests * Many bugfixes in build script for compatibility with GH action workers
- Loading branch information
1 parent
5301e7d
commit 35cffa7
Showing
6 changed files
with
111 additions
and
288 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
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 |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"IsEncrypted": false, | ||
"Values": { | ||
"AzureWebJobsStorage": "UseDevelopmentStorage=true", | ||
"FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated" | ||
} | ||
} |
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
Oops, something went wrong.