-
Notifications
You must be signed in to change notification settings - Fork 16
57 lines (44 loc) · 1.5 KB
/
formatting-and-tests.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Formatting & Tests
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
formatting:
runs-on: ubuntu-latest
name: Check Build and formatting
strategy:
max-parallel: 2
matrix:
working-directory: ["Flagsmith.FlagsmithClient", "Flagsmith.Engine","Flagsmith.EngineTest","Flagsmith.Client.Test"]
steps:
- name: Cloning repo
uses: actions/checkout@v4
- name: Set up Dotnet
uses: actions/setup-dotnet@v4
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Check Formatting
run: dotnet format --verify-no-changes
working-directory: ${{ matrix.working-directory }}
test:
runs-on: ubuntu-latest
name: Test
strategy:
max-parallel: 2
matrix:
working-directory: ["Flagsmith.EngineTest","Flagsmith.Client.Test"]
steps:
- name: Cloning repo
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Set up Dotnet
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Run Tests
run: dotnet test
working-directory: ${{ matrix.working-directory }}