-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) Β· 1005 Bytes
/
pull_request.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
name: Build & test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Health Checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: 'true'
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- name: Install linter
run: dotnet tool install -g fantomas
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Lint
run: fantomas ./CookLangNet/ ./CookLangNet.CSharp/ ./CookLangNet.Tests/ --check
- name: Test
run: dotnet test --no-restore --logger "trx;LogFileName=test_results.trx"
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v2
with:
name: test_results
path: |
**/test_results.trx