add: test action
This commit is contained in:
19
.gitea/workflows/unit-test.yaml
Normal file
19
.gitea/workflows/unit-test.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
name: Run unit test
|
||||
on: [ push ]
|
||||
|
||||
jons:
|
||||
Unit-Test:
|
||||
runs-on: archlinux
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: https://git.rrricardo.top/actions/checkout@v4
|
||||
- name: Cache nuget packages
|
||||
uses: https://git.rrricardo.top/actions/cache@v4
|
||||
with:
|
||||
path: ~/.nuget/packages
|
||||
key: ${{ runner.os }}-nuget
|
||||
save-always: true
|
||||
- name: Build code
|
||||
run: dotnet build
|
||||
- name: Run test code
|
||||
run: dotnet test
|
Reference in New Issue
Block a user