Skip to content

Commit

Permalink
Build C# code
Browse files Browse the repository at this point in the history
  • Loading branch information
sualeh committed Apr 14, 2024
1 parent 5e9ebc4 commit ba8bde8
Showing 1 changed file with 28 additions and 16 deletions.
44 changes: 28 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
name: Build "main"
runs-on: ubuntu-latest
steps:
- id: prepare-maven-build
- id: prepare-java-build
name: Prepare Maven build
uses: sualeh/prepare-maven[email protected]
uses: sualeh/prepare-java[email protected]
with:
checkout-branch: main
- id: build-java
Expand All @@ -31,9 +31,9 @@ jobs:
name: Build "step1"
runs-on: ubuntu-latest
steps:
- id: prepare-maven-build
- id: prepare-java-build
name: Prepare Maven build
uses: sualeh/prepare-maven[email protected]
uses: sualeh/prepare-java[email protected]
with:
checkout-branch: step1
- id: build-java
Expand All @@ -49,15 +49,15 @@ jobs:
name: Build "step2"
runs-on: ubuntu-latest
steps:
- id: prepare-maven-build
- id: prepare-java-build
name: Prepare Maven build
uses: sualeh/prepare-maven[email protected]
uses: sualeh/prepare-java[email protected]
with:
checkout-branch: step2
- id: build-java
name: Build and run tests
name: Java build and run tests
run: |
# Build and run tests
# Java build and run tests
cd Java
mvn \
--no-transfer-progress \
Expand All @@ -67,15 +67,15 @@ jobs:
name: Build "step3"
runs-on: ubuntu-latest
steps:
- id: prepare-maven-build
- id: prepare-java-build
name: Prepare Maven build
uses: sualeh/prepare-maven[email protected]
uses: sualeh/prepare-java[email protected]
with:
checkout-branch: step3
- id: build-java
name: Build and run tests
name: Java build and run tests
run: |
# Build and run tests
# Java build and run tests
cd Java
mvn \
--no-transfer-progress \
Expand All @@ -85,17 +85,29 @@ jobs:
name: Build "step4"
runs-on: ubuntu-latest
steps:
- id: prepare-maven-build
- id: prepare-java-build
name: Prepare Maven build
uses: sualeh/prepare-maven[email protected]
uses: sualeh/prepare-java[email protected]
with:
checkout-branch: step4
- id: build-java
name: Build and run tests
name: Java build and run tests
run: |
# Build and run tests
# Java build and run tests
cd Java
mvn \
--no-transfer-progress \
--batch-mode \
test
- id: prepare-dotnet-build
name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.3'
- id: build-dotnet
name: .NET build and run tests
run: |
# C# build and run tests
cd C#
dotnet build
dotnet test

0 comments on commit ba8bde8

Please sign in to comment.