-
Notifications
You must be signed in to change notification settings - Fork 17
40 lines (36 loc) · 1.13 KB
/
dotnetcore.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
name: dotnetcore
on: [push]
jobs:
# Label of the container job
redis-integration-test:
# Containers must run in Linux based operating systems
runs-on: ubuntu-latest
# # Docker image that `job` executes in
# container: mcr.microsoft.com/dotnet/sdk:5.0
# Service containers to run with `container-job`
# https://docs.github.com/en/free-pro-team@latest/actions/guides/creating-redis-service-containers
services:
# Label used to access the service container
redis:
# Docker Hub image
image: redis:alpine
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps port 6379 on service container to the host
- 6379:6379
steps:
- uses: actions/checkout@v1
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: dotnet info
run: dotnet --info
- name: build
run: bash build.sh --target=test