-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (43 loc) · 1.47 KB
/
ci.yml
File metadata and controls
55 lines (43 loc) · 1.47 KB
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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build_test:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup .NET SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'
- name: Show dotnet info
run: dotnet --info
- name: Cache NuGet packages
uses: actions/cache@v5
with:
path: ~/.nuget/packages
key: nuget-${{ runner.os }}-${{ hashFiles('**/*.csproj', '**/Directory.Packages.props', '**/global.json', '**/nuget.config') }}
restore-keys: |
nuget-${{ runner.os }}-
- name: Restore
run: dotnet restore --nologo
- name: Build (Release)
run: dotnet build --configuration Release --nologo -warnaserror
- name: Test (Release)
run: dotnet test --configuration Release --nologo --no-build
- name: pack (nupkg + snupkg, prerelease)
run: dotnet pack src/NuExt.System.Data.csproj -c Release -o artifacts --nologo /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg -p:VersionSuffix="pre.${{ github.run_number }}"
- name: upload nupkg
uses: actions/upload-artifact@v7
with:
name: nuext-system-data-nupkg
path: artifacts/*.nupkg
- name: upload snupkg
uses: actions/upload-artifact@v7
with:
name: nuext-system-data-snupkg
path: artifacts/*.snupkg