Skip to content

Merge pull request #53 from OUCC/feat/add-ci-target #179

Merge pull request #53 from OUCC/feat/add-ci-target

Merge pull request #53 from OUCC/feat/add-ci-target #179

Workflow file for this run

name: CI
on:
push:
branches: [main, release/*]
pull_request:
branches: [main, release/*]
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- uses: microsoft/setup-msbuild@v2
- uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-
- run: dotnet restore
- run: dotnet format whitespace --verify-no-changes
- run: dotnet build -c Release
test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- uses: microsoft/setup-msbuild@v2
- uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-
- run: dotnet restore
- run: dotnet test