Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mads256h authored Oct 27, 2023
1 parent 4cede6e commit 6513380
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: .NET

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/[email protected]

- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.x

- name: Install Dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration Debug --no-restore

- name: Test
run: dotnet test --no-restore --verbosity normal

- name: Check Formatting
run: dotnet format --verify-no-changes

- name: Upload Artifact
- uses: actions/[email protected]
with:
name: Build
path: "**/bin/Debug/net7.0"

0 comments on commit 6513380

Please sign in to comment.