Skip to content

update github actions CI config #3

update github actions CI config

update github actions CI config #3

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
services:
# Label used to access the service container
slock:
# Docker Hub image
image: sujin190/slock
#
ports:
# Opens tcp port 5658 on the host and service container
- 5658:5658
options: >-
--health-cmd "slock-cli ping"
--health-interval 3s
--health-timeout 5s
--health-retries 10
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal --logger "console;verbosity=detailed"