Skip to content

Commit

Permalink
Create dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Bliztle committed Mar 15, 2024
1 parent 501834b commit 31d090c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ indent_size = 4
trim_trailing_whitespace = true
end_of_line = lf

[*.md]
indent_size = 2

#### .NET Coding Conventions ####
[*.{cs,vb}]
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET

on:
push:
branches: ["main", "pipeline", "pipeline/*"]
pull_request:
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Setup Antlr4
uses: siacodelabs/setup-antlr4@v2
- name: Generate parser
run: |
cd SocietalConstructionTool/parser
antlr4 -Dlanguage=CSharp Sct.g4 -o out
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal

0 comments on commit 31d090c

Please sign in to comment.