Skip to content

Commit

Permalink
Add GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
qmfrederik committed Apr 25, 2024
1 parent ac534e0 commit 6eaac08
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: main

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Build
run: |
dotnet restore dotnet-packaging.sln
dotnet pack dotnet-packaging.sln -c Release -o pkg/
cp demo/Directory.Build.props pkg/
cp demo/version.txt pkg/
- name: Test
run: |
dotnet test Packaging.Targets.Tests/Packaging.Targets.Tests.csproj -l "trx;LogFileName=pkg/Packaging.Targets.Tests.trx"
- uses: actions/upload-artifact@v4
with:
name: pkg
path: pkg/

0 comments on commit 6eaac08

Please sign in to comment.