forked from aptos-labs/aptos-dotnet-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 963 Bytes
/
run-checks.yaml
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
42
43
env:
GIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
name: "C# and .NET Checks"
on:
pull_request:
types: [labeled, opened, synchronize, reopened, auto_merge_enabled]
push:
branches:
- main
jobs:
run-tests:
name: Run Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ env.GIT_SHA }}
- name: Setup .NET
uses: ./.github/actions/setup-dotnet
- name: Run Tests
run: dotnet test --no-restore --verbosity normal
working-directory: ./Aptos.Tests
shell: bash
run-format-check:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ env.GIT_SHA }}
- name: Setup .NET
uses: ./.github/actions/setup-dotnet
with:
build: false
- name: Check Formatting
uses: ./.github/actions/check-formatting