Skip to content

Commit c50f227

Browse files
authored
Define first workflow to build and test the project (#3)
1 parent 96f7dd6 commit c50f227

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

.github/workflows/build.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ "main" ]
7+
pull_request:
8+
branches: [ "main" ]
9+
10+
jobs:
11+
12+
build:
13+
14+
runs-on: windows-latest
15+
16+
env:
17+
Configuration: Release
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Install .NET
24+
uses: actions/setup-dotnet@v4
25+
with:
26+
dotnet-version: 7.0.x
27+
28+
- name: Build & Pack
29+
run: dotnet build --configuration $env:Configuration
30+
31+
- name: Test
32+
run: dotnet test --configuration $env:Configuration --no-build

GeneXus.Drawing-DotNet.sln

+7-2
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,20 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Config", "Config", "{0AA3DD
1414
NuGet.Config = NuGet.Config
1515
EndProjectSection
1616
EndProject
17+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ConfigTests", "ConfigTests", "{78EDCF29-0777-462A-9050-DED15C1AE0C0}"
18+
ProjectSection(SolutionItems) = preProject
19+
test\Directory.Build.props = test\Directory.Build.props
20+
EndProjectSection
21+
EndProject
1722
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Doc", "Doc", "{CCD059C7-E040-4C1E-B0E8-8EE0ADA66943}"
1823
ProjectSection(SolutionItems) = preProject
1924
src\PackageREADME.md = src\PackageREADME.md
2025
README.md = README.md
2126
EndProjectSection
2227
EndProject
23-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ConfigTests", "ConfigTests", "{78EDCF29-0777-462A-9050-DED15C1AE0C0}"
28+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Scripts", "Scripts", "{02269C1C-4965-4883-B220-CB20C513AA1F}"
2429
ProjectSection(SolutionItems) = preProject
25-
test\Directory.Build.props = test\Directory.Build.props
30+
.github\workflows\build.yml = .github\workflows\build.yml
2631
EndProjectSection
2732
EndProject
2833
Global

0 commit comments

Comments
 (0)