chore: add first version of CI build #1
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: ci | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v*' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
NUGET_PACKAGES: '${{ github.workspace }}/.nuget/packages' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: NuGet Cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
${{ env.NUGET_PACKAGES }} | |
.nuke/temp | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/global.json', '**/*.csproj', '**/*.props') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
- name: Restore .NET Tools | |
run: | | |
dotnet tool restore | |
- name: Restore | |
run: | | |
dotnet nuke Restore --skip | |
- name: Build | |
run: | | |
dotnet nuke Build --skip | |
- name: Test | |
run: | | |
dotnet nuke Test --skip |