forked from csharp-opensource/CSharp.OpenSource.LinqToKql
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (24 loc) · 890 Bytes
/
e2eTests.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
name: End-to-End Tests
on: [push, pull_request]
jobs:
e2eTests:
runs-on: ubuntu-latest
name: End-to-End Tests
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
- name: Set up Docker
uses: docker/setup-buildx-action@v2
- name: Start local Kusto cluster
run: |
docker run -e ACCEPT_EULA=Y -m 4G -d -p 8080:8080 -t mcr.microsoft.com/azuredataexplorer/kustainer-linux:latest
- name: Set E2E_TESTING environment variables
run: echo "E2E_TESTING=1" >> $GITHUB_ENV
- name: Restore
run: dotnet restore ./CSharp.OpenSource.LinqToKql.Test
- name: Build
run: dotnet build -clp:ErrorsOnly --no-restore ./CSharp.OpenSource.LinqToKql.Test
- name: Run unit tests
run: dotnet test --no-restore --no-build ./CSharp.OpenSource.LinqToKql.Test