From d1a2dff4ace03c0967c2d14ae6a2dce43c9cec66 Mon Sep 17 00:00:00 2001 From: s2quake Date: Fri, 14 Jun 2024 19:52:17 +0900 Subject: [PATCH] ci: Add build and test runs --- .github/workflows/dotnet-core.yml | 33 ------------------------------- .github/workflows/test.yml | 21 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 33 deletions(-) delete mode 100644 .github/workflows/dotnet-core.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/dotnet-core.yml b/.github/workflows/dotnet-core.yml deleted file mode 100644 index 1338bd9..0000000 --- a/.github/workflows/dotnet-core.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: .NET Core - -on: - push: - branches: - - master - pull_request: - branches: - - master - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 3.1.301 - - name: Submodule Init - run: git submodule init -- - - name: Submodule Update - run: git submodule update -- - - name: Submodule Checkout - run: git submodule foreach git checkout master - - name: Submodule Pull - run: git submodule foreach git pull - - name: Install dependencies - run: dotnet restore - - name: Build - run: dotnet build --configuration Release --no-restore --framework netcoreapp3.1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..74411f6 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,21 @@ +name: Build and Test + +on: + push: + branches: + - main + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4.1.7 + - name: Setup .NET Core + uses: actions/setup-dotnet@v4.0.0 + with: + dotnet-version: 8.0.100 + - name: Build + run: dotnet build --configuration Release + - name: Test + run: dotnet test --configuration Release --no-restore --no-build