File tree Expand file tree Collapse file tree 1 file changed +10
-19
lines changed Expand file tree Collapse file tree 1 file changed +10
-19
lines changed Original file line number Diff line number Diff line change @@ -2,31 +2,22 @@ name: CI
22
33on :
44 push :
5- branches : [ "master " ]
5+ branches : [ "main " ]
66 pull_request :
7- branches : [ "master " ]
7+ branches : [ "main " ]
88
99jobs :
10- build :
11-
10+ test :
1211 runs-on : ubuntu-latest
12+ container : mcr.microsoft.com/dotnet/sdk:7.0
13+
14+ services :
15+ memcached :
16+ image : memcached
1317
1418 steps :
15- - uses : actions/checkout@v3
16- - name : Setup .NET
17- uses : actions/setup-dotnet@v2
18- with :
19- dotnet-version : 7.0.x
20- - name : Install dependencies
21- run : |
22- sudo apt-get update
23- sudo apt-get install libmemcached-dev memcached
24- - name : Start memcached daemons
25- run : |
26- memcached -d -p 11211
27- - name : Add memcached host to /etc/hosts
28- run : |
29- echo "127.0.0.1 memcached" | sudo tee -a /etc/hosts
19+ - name : Checkout
20+ uses : actions/checkout@v3
3021 - name : Build
3122 run : ./build.sh
3223 - name : Test
You can’t perform that action at this time.
0 commit comments