CanonSharp/.gitea/workflows/unit-test.yaml

20 lines
609 B
YAML
Raw Normal View History

2024-07-27 15:41:11 +08:00
name: Run unit test
on: [ push ]
2024-07-27 15:41:58 +08:00
jobs:
2024-07-27 15:41:11 +08:00
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