Skip to content

Commit

Permalink
chore: add first version of CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
Xzelsius committed Apr 30, 2024
1 parent e45390e commit 1552484
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
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

0 comments on commit 1552484

Please sign in to comment.