mirror of
https://github.com/Ellpeck/Contentless.git
synced 2024-11-21 23:13:29 +01:00
use github actions
This commit is contained in:
parent
c45138a084
commit
d9c863e7ed
2 changed files with 20 additions and 11 deletions
20
.github/workflows/main.yml
vendored
Normal file
20
.github/workflows/main.yml
vendored
Normal 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
|
|
@ -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
|
|
Loading…
Reference in a new issue