-
Notifications
You must be signed in to change notification settings - Fork 273
52 lines (43 loc) · 1.27 KB
/
E2ETest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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