Skip to content

Add end-to-end tests via GitHub Actions #131

Add end-to-end tests via GitHub Actions

Add end-to-end tests via GitHub Actions #131

Workflow file for this run

name: Unit Tests
on: [push, pull_request]
jobs:
UnitTests:
runs-on: ubuntu-latest
name: Unit Tests
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set E2E_TESTING environment variable
run: echo "E2E_TESTING=0" >> $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