File tree 1 file changed +18
-3
lines changed
1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
branches :
5
5
- main # Default release branch
6
+ pull_request :
6
7
workflow_dispatch :
7
8
8
9
jobs :
10
+ test :
11
+ name : Verify provided solutions
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ - name : restore submodules
16
+ run : git submodule update --init
17
+ - name : Setup .NET Core
18
+ uses : actions/setup-dotnet@v2
19
+ with :
20
+ dotnet-version : 8.0.x
21
+ - name : Install dependencies
22
+ run : dotnet restore
23
+ - name : Test
24
+ run : dotnet test LearnJsonEverything.sln -c Release --no-restore
9
25
publish :
10
- name : build, pack & publish
26
+ name : pack & publish
11
27
runs-on : ubuntu-latest
28
+ if : env.BRANCH == 'main'
12
29
steps :
13
30
- uses : actions/checkout@v3
14
31
- name : restore submodules
21
38
run : dotnet restore
22
39
- name : Pre-build solution
23
40
run : dotnet build LearnJsonEverything.sln -c Release --no-restore
24
- - name : Test
25
- run : dotnet test LearnJsonEverything.sln -c Release --no-restore
26
41
- name : Publish
27
42
run : dotnet publish LearnJsonEverything/LearnJsonEverything.csproj -c Release --no-restore -o bin
28
43
- name : Add .nojekyll file
You can’t perform that action at this time.
0 commit comments