File tree Expand file tree Collapse file tree 2 files changed +64
-55
lines changed Expand file tree Collapse file tree 2 files changed +64
-55
lines changed Original file line number Diff line number Diff line change 1
- name : Build&Test
1
+ name : Build
2
2
3
3
on :
4
4
push :
7
7
branches : [ dev, main, master ]
8
8
9
9
jobs :
10
-
11
- linux :
12
- name : build and test on ${{ matrix.os }}
13
- runs-on : ${{ matrix.os }}
14
- strategy :
15
- matrix :
16
- os : [ ubuntu-latest ]
17
-
18
- services :
19
- redis6379 :
20
- image : redis
21
- ports :
22
- - 6379:6379
23
- redis6380 :
24
- image : redis
25
- ports :
26
- - 6380:6379
27
- redis6388 :
28
- image : redis
29
- ports :
30
- - 6388:6379
31
- memcached1 :
32
- image : bitnami/memcached
33
- ports :
34
- - 11211:11211
35
- memcached2 :
36
- image : bitnami/memcached
37
- ports :
38
- - 11212:11211
39
-
40
- steps :
41
- - uses : actions/checkout@v2
42
- - name : Setup .NET SDK 6.0.x
43
- uses : actions/setup-dotnet@v1
44
- with :
45
- dotnet-version : 6.0.x
46
-
47
- - name : Show dotnet Version
48
- run : |
49
- dotnet --list-sdks
50
- dotnet --list-runtimes
51
-
52
- - name : Show docker info
53
- run : |
54
- docker ps -a
55
-
56
- - name : Build with dotnet
57
- run : |
58
- dotnet build --configuration Release /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln
59
-
60
- - name : Run tests on net6.0
61
- run : |
62
- dotnet test --framework=net6.0 /home/runner/work/EasyCaching/EasyCaching/test/EasyCaching.UnitTests/EasyCaching.UnitTests.csproj
63
-
10
+
64
11
windows :
65
12
name : build on ${{ matrix.os }}
66
13
runs-on : ${{ matrix.os }}
Original file line number Diff line number Diff line change
1
+ name : Build&Test
2
+
3
+ on :
4
+ push :
5
+ branches : [ dev, main, master, '**' ]
6
+ pull_request :
7
+ branches : [ dev, main, master ]
8
+
9
+ jobs :
10
+
11
+ linux :
12
+ name : build and test on ${{ matrix.os }}
13
+ runs-on : ${{ matrix.os }}
14
+ strategy :
15
+ matrix :
16
+ os : [ ubuntu-latest ]
17
+
18
+ services :
19
+ redis6379 :
20
+ image : redis
21
+ ports :
22
+ - 6379:6379
23
+ redis6380 :
24
+ image : redis
25
+ ports :
26
+ - 6380:6379
27
+ redis6388 :
28
+ image : redis
29
+ ports :
30
+ - 6388:6379
31
+ memcached1 :
32
+ image : bitnami/memcached
33
+ ports :
34
+ - 11211:11211
35
+ memcached2 :
36
+ image : bitnami/memcached
37
+ ports :
38
+ - 11212:11211
39
+
40
+ steps :
41
+ - uses : actions/checkout@v2
42
+ - name : Setup .NET SDK 6.0.x
43
+ uses : actions/setup-dotnet@v1
44
+ with :
45
+ dotnet-version : 6.0.x
46
+
47
+ - name : Show dotnet Version
48
+ run : |
49
+ dotnet --list-sdks
50
+ dotnet --list-runtimes
51
+
52
+ - name : Show docker info
53
+ run : |
54
+ docker ps -a
55
+
56
+ - name : Build with dotnet
57
+ run : |
58
+ dotnet build --configuration Release /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln
59
+
60
+ - name : Run tests on net6.0
61
+ run : |
62
+ dotnet test --framework=net6.0 /home/runner/work/EasyCaching/EasyCaching/test/EasyCaching.UnitTests/EasyCaching.UnitTests.csproj
You can’t perform that action at this time.
0 commit comments