Skip to content

Commit e385e81

Browse files
committed
ci: add test job
1 parent 373a8e2 commit e385e81

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
container: mcr.microsoft.com/dotnet/sdk:7.0
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
- name: Build
18+
run: ./build.sh
19+
- name: Test
20+
run: ./test.sh
21+

build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
dotnet restore
3+
dotnet build -c Release

test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
dotnet test -c Release

0 commit comments

Comments
 (0)