From d9c863e7ed183e7d0b66bb7bc56b540c61639279 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 4 Feb 2024 16:31:03 +0100 Subject: [PATCH] use github actions --- .github/workflows/main.yml | 20 ++++++++++++++++++++ .woodpecker/main.yml | 11 ----------- 2 files changed, 20 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/main.yml delete mode 100644 .woodpecker/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..9a121fd --- /dev/null +++ b/.github/workflows/main.yml @@ -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 \ No newline at end of file diff --git a/.woodpecker/main.yml b/.woodpecker/main.yml deleted file mode 100644 index 605b82c..0000000 --- a/.woodpecker/main.yml +++ /dev/null @@ -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