Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/CSharp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI CSharp

on:
push:
branches: ["main"]
paths:
- "CSharp/**"
- "grammar/*.g4"
pull_request:
branches: ["main"]
paths:
- "CSharp/**"
- "grammar/*.g4"

jobs:
build-and-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./CSharp

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "6.0.x"

- name: Generate ANTLR4 files
run: sh generate.sh
working-directory: .

- name: Restore
run: dotnet restore CSharp.sln

- name: Build
run: dotnet build CSharp.sln --configuration Release --no-restore

- name: Test
run: dotnet test CSharp.sln --configuration Release --no-build --verbosity normal
Loading
Loading