forked from StackExchange/StackExchange.Redis
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (27 loc) · 796 Bytes
/
Linux.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
name: Linux CI
on:
pull_request:
push:
branches:
- master
paths:
- '*'
- '!/docs/*' # Don't run workflow when files are only in the /docs directory
jobs:
build:
name: Ubuntu
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: .NET Build
run: dotnet build Build.csproj -c Release /p:CI=true
- name: Start Redis Services
working-directory: ./tests/RedisConfigs
run: docker-compose -f docker-compose.yml up -d
- name: .NET Test
run: dotnet test Build.csproj -c Release --no-build /p:CI=true
env:
EnableTestLogging: true
- name: .NET Lib Pack
run: dotnet pack Build.csproj --no-build -c Release /p:Packing=true /p:PackageOutputPath=%CD%\.nupkgs /p:CI=true