-
Notifications
You must be signed in to change notification settings - Fork 3
32 lines (30 loc) · 843 Bytes
/
dotnet.yml
File metadata and controls
32 lines (30 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Unit tests
on:
workflow_dispatch:
push:
branches: [ main ]
paths-ignore:
- '.vscode/**'
- '.github/**'
- 'README.md'
pull_request:
branches: [ main ]
paths-ignore:
- '.vscode/**'
- '.github/**'
- 'README.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 10.0.x
- name: Restore dependencies
run: dotnet restore CenturyLocalization/CenturyLocalization/CenturyLocalization.csproj
- name: Build
run: dotnet build CenturyLocalization/CenturyLocalization/CenturyLocalization.csproj --no-restore
- name: Test
run: dotnet test CenturyLocalization/LocalizationTests/LocalizationTests.csproj --no-build --verbosity normal