Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

Commit 03cd234

Browse files
add ci workflow
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
1 parent 988c1bd commit 03cd234

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# This workflow will build a .NET project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3+
4+
name: .NET
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
ci:
18+
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
dotnet:
22+
- '6.0.x'
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+
- name: Setup .NET
27+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
28+
with:
29+
dotnet-version: ${{ matrix.dotnet }}
30+
- name: Restore dependencies
31+
run: dotnet restore
32+
- name: Build
33+
run: dotnet build --no-restore
34+
- name: Test
35+
run: dotnet test --no-build --verbosity normal
36+
docker:
37+
runs-on: ubuntu-latest
38+
needs: ci
39+
steps:
40+
- name: Checkout
41+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
42+
43+
- name: Build the Docker image
44+
run: docker build . --file docker/Dockerfile --tag dotnet-image:$(date +%s)

0 commit comments

Comments
 (0)