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
2
2
3
3
on :
4
4
push :
5
- branches : [ "master " ]
5
+ branches : [ "main " ]
6
6
pull_request :
7
- branches : [ "master " ]
7
+ branches : [ "main " ]
8
8
9
9
jobs :
10
- build :
11
-
10
+ test :
12
11
runs-on : ubuntu-latest
12
+ container : mcr.microsoft.com/dotnet/sdk:7.0
13
+
14
+ services :
15
+ memcached :
16
+ image : memcached
13
17
14
18
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
30
21
- name : Build
31
22
run : ./build.sh
32
23
- name : Test
You can’t perform that action at this time.
0 commit comments