Skip to content

Commit 771dfcf

Browse files
committed
Add GitHub workflow
1 parent 0d56d1f commit 771dfcf

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/main.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: main
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
14+
- name: Build
15+
run: |
16+
dotnet restore dotnet-packaging.sln
17+
dotnet pack dotnet-packaging.sln -c Release -o pkg/
18+
cp demo/Directory.Build.props pkg/
19+
cp demo/version.txt pkg/
20+
21+
- name: Test
22+
run: |
23+
dotnet test Packaging.Targets.Tests/Packaging.Targets.Tests.csproj -l "trx;LogFileName=pkg/Packaging.Targets.Tests.trx"
24+
25+
- uses: actions/upload-artifact@v4
26+
with:
27+
name: pkg
28+
path: pkg/

0 commit comments

Comments
 (0)