-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 1 KB
/
test.yml
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
33
34
35
36
37
38
39
40
41
name: Unit Test
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v2
with:
dotnet-version: |
3.1.x
6.0.x
- uses: actions/cache@v3
with:
path: ~/.nuget/packages
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget
- name: Install dependencies
run: dotnet restore ./src/gen
- name: Build
run: dotnet build ./src/gen --configuration Release --no-restore
- name: Unit Test
run: dotnet test ./src/gen --no-restore
- name: Automerge
uses: pascalgn/automerge-action@v0.15.3
env:
GITHUB_TOKEN: '${{ secrets.GH_PERSONAL_TOKEN }}'
MERGE_LABELS: ''
MERGE_METHOD: squash