-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (34 loc) · 945 Bytes
/
ci.yml
File metadata and controls
46 lines (34 loc) · 945 Bytes
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
name: CI
permissions:
contents: read
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Restore dependencies
run: dotnet restore Rapp.sln
- name: Build
run: dotnet build Rapp.sln --no-restore --configuration Release
- name: Test
run: dotnet test Rapp.sln --no-build --configuration Release --verbosity normal
- name: Pack
run: |
# Pack the main projects
dotnet pack src/Rapp/Rapp.csproj -c Release -o ./artifacts
dotnet pack src/Rapp.Gen/Rapp.Gen.csproj -c Release -o ./artifacts
- name: Upload Artifacts
uses: actions/upload-artifact@v6
with:
name: nuget-packages
path: ./artifacts/*.nupkg