File tree 2 files changed +26
-17
lines changed
2 files changed +26
-17
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 :
7
6
workflow_dispatch :
8
7
9
8
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
25
9
publish :
26
10
name : pack & publish
27
11
runs-on : ubuntu-latest
28
- if : github.ref == 'refs/heads/main'
29
12
steps :
30
13
- uses : actions/checkout@v3
31
14
- name : restore submodules
38
21
run : dotnet restore
39
22
- name : Pre-build solution
40
23
run : dotnet build LearnJsonEverything.sln -c Release --no-restore
24
+ - name : Test
25
+ run : dotnet test LearnJsonEverything.sln -c Release --no-restore
41
26
- name : Publish
42
27
run : dotnet publish LearnJsonEverything/LearnJsonEverything.csproj -c Release --no-restore -o bin
43
28
- name : Add .nojekyll file
Original file line number Diff line number Diff line change
1
+ name : Verify solutions
2
+ on :
3
+ push :
4
+ branches :
5
+ - main # Default release branch
6
+ pull_request :
7
+ workflow_dispatch :
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
You can’t perform that action at this time.
0 commit comments