-
Notifications
You must be signed in to change notification settings - Fork 322
62 lines (53 loc) · 1.35 KB
/
buildandtest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Build&Test
on:
push:
branches: [ dev, main, master, '**' ]
pull_request:
branches: [ dev, main, master ]
jobs:
linux:
name: build and test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
services:
redis6379:
image: redis
ports:
- 6379:6379
redis6380:
image: redis
ports:
- 6380:6379
redis6388:
image: redis
ports:
- 6388:6379
memcached1:
image: bitnami/memcached
ports:
- 11211:11211
memcached2:
image: bitnami/memcached
ports:
- 11212:11211
steps:
- uses: actions/checkout@v4
- name: Setup .NET SDK 6.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Show dotnet Version
run: |
dotnet --list-sdks
dotnet --list-runtimes
- name: Show docker info
run: |
docker ps -a
- name: Build with dotnet
run: |
dotnet build --configuration Release /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln
- name: Run tests on net6.0
run: |
dotnet test --framework=net6.0 /home/runner/work/EasyCaching/EasyCaching/test/EasyCaching.UnitTests/EasyCaching.UnitTests.csproj