This repository has been archived by the owner on Aug 29, 2024. It is now read-only.
ci: update dotnet version #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build and test | |
# TODO: Figure out how to pull Dalamud Assets into GitHub Actions | |
on: | |
push: | |
branches: [ main ] | |
# pull_request: | |
# branches: [ main ] | |
# paths: | |
# - '**.cs' | |
# - '**.csproj' | |
env: | |
DOTNET_VERSION: '8.x.x' # The .NET SDK version to use | |
jobs: | |
build-and-test: | |
name: build-and-test | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: Blooym/setup-dalamud@v1 | |
with: | |
branch: release # Replace with 'stg' for staging builds | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build /nodeReuse:false -nologo -clp:NoSummary --verbosity quiet | |
- name: Test | |
run: dotnet test --no-restore --verbosity quiet |