use github actions

This commit is contained in:
Ell 2024-02-04 16:31:03 +01:00
parent c45138a084
commit d9c863e7ed
2 changed files with 20 additions and 11 deletions

20
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,20 @@
on: [push, pull_request]
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Build
run: dotnet build Contentless
- name: Build test project
run: |
dotnet restore Test
dotnet run --project Contentless Test/Content/Content.mgcb Test/Test.csproj
dotnet build Test

View file

@ -1,11 +0,0 @@
steps:
build:
image: mcr.microsoft.com/dotnet/sdk:8.0-jammy
commands:
- dotnet build Contentless
test:
image: mcr.microsoft.com/dotnet/sdk:8.0-jammy
commands:
- dotnet restore Test
- dotnet run --project Contentless Test/Content/Content.mgcb Test/Test.csproj
- dotnet build Test