-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (44 loc) · 1.2 KB
/
dependabot-build.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: '[Dependabot NuGet] Build .NET'
on:
push:
branches:
- 'dependabot/nuget/**'
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
NUGET_CERT_REVOCATION_MODE: offline
jobs:
net-test:
name: .NET tests
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install .NET 8.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0
dotnet-quality: ga
- name: Restore NuGet packages
run: dotnet restore --verbosity minimal
- name: Run .NET tests
run: dotnet test --configuration Release
net-build:
name: .NET build
runs-on: ubuntu-latest
needs: [ net-test ]
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install .NET 8.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0
dotnet-quality: ga
- name: Restore NuGet packages
run: dotnet restore --verbosity minimal
- name: Publish package
run: dotnet pack -o ./artifacts -c Release ./src/RobotsTxt/RobotsTxt.csproj
working-directory: ./