-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (36 loc) · 1020 Bytes
/
dotnet.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: .NET
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macOS-latest ]
steps:
- uses: actions/checkout@v2
- name: Setup .NET 6.0.x
id: setup-dotnet6
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore dependencies
id: restore-deps
run: dotnet restore ./src/Vlingo.Xoom.Lattice.sln
- name: Build
id: build
run: dotnet build ./src/Vlingo.Xoom.Lattice.sln --no-restore
- name: Test
id: test
run: dotnet test ./src/Vlingo.Xoom.Lattice.Tests/Vlingo.Xoom.Lattice.Tests.csproj --no-build --verbosity normal
- name: slack - GitHub Actions Slack integration
uses: act10ns/[email protected]
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
if: always()