Skip to content

Commit

Permalink
Define first workflow to build and test the project (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
anaiberta authored May 9, 2024
1 parent 96f7dd6 commit c50f227
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build

on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:

runs-on: windows-latest

env:
Configuration: Release

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x

- name: Build & Pack
run: dotnet build --configuration $env:Configuration

- name: Test
run: dotnet test --configuration $env:Configuration --no-build
9 changes: 7 additions & 2 deletions GeneXus.Drawing-DotNet.sln
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,20 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Config", "Config", "{0AA3DD
NuGet.Config = NuGet.Config
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ConfigTests", "ConfigTests", "{78EDCF29-0777-462A-9050-DED15C1AE0C0}"
ProjectSection(SolutionItems) = preProject
test\Directory.Build.props = test\Directory.Build.props
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Doc", "Doc", "{CCD059C7-E040-4C1E-B0E8-8EE0ADA66943}"
ProjectSection(SolutionItems) = preProject
src\PackageREADME.md = src\PackageREADME.md
README.md = README.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ConfigTests", "ConfigTests", "{78EDCF29-0777-462A-9050-DED15C1AE0C0}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Scripts", "Scripts", "{02269C1C-4965-4883-B220-CB20C513AA1F}"
ProjectSection(SolutionItems) = preProject
test\Directory.Build.props = test\Directory.Build.props
.github\workflows\build.yml = .github\workflows\build.yml
EndProjectSection
EndProject
Global
Expand Down

0 comments on commit c50f227

Please sign in to comment.