-
Notifications
You must be signed in to change notification settings - Fork 118
40 lines (38 loc) · 937 Bytes
/
samples.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Samples
on:
push:
branches:
- master
tags:
- '**'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Build
working-directory: samples
run: dotnet build -c Release
- name: Test
working-directory: samples
run: dotnet test -c Release --no-build
pack:
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v1
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Pack
working-directory: samples
run: dotnet pack AspectInjector.SampleApps.sln -o `pwd`/artifacts -c Release
- uses: actions/upload-artifact@v1
with:
name: artifacts
path: ./samples/artifacts