diff --git a/.editorconfig b/.editorconfig index b6a8b3b..3b5988f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -5,6 +5,7 @@ root = true [*] indent_style = space +insert_final_newline = true [*.cs] indent_size = 4 @@ -61,4 +62,4 @@ indent_size = 4 indent_size = 2 [*.{yaml,yml}] -indent_size = 2 \ No newline at end of file +indent_size = 2 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e26adcc --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,13 @@ +name: CI + +on: + push: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: docker/setup-buildx-action@v3 + - run: docker-compose build diff --git a/README.md b/README.md index 5418bdb..e0a25ad 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Serilog.Sinks.Http - Sample in .NET Core -[![Build status](https://ci.appveyor.com/api/projects/status/n6xpr0vxexlb1oro/branch/master?svg=true)](https://ci.appveyor.com/project/FantasticFiasco/serilog-sinks-http-sample-dotnet-core/branch/master) +[![CI](https://github.com/FantasticFiasco/serilog-sinks-http-sample-dotnet-core/actions/workflows/ci.yml/badge.svg)](https://github.com/FantasticFiasco/serilog-sinks-http-sample-dotnet-core/actions/workflows/ci.yml) This repository contains a sample application of [Serilog.Sinks.Http](https://github.com/FantasticFiasco/serilog-sinks-http) producing log events sent over HTTP to a basic log server. @@ -15,4 +15,4 @@ What you will end up with is two containers, one producing log events while the ## Remarks - The sample application is using a custom implementation of a HTTP client, mainly to show that it is possible to do so. But don't specify a custom implementation if you don't have to. -- The sink is configured in code, but could as well be configured in `appsettings.json` using [Serilog.Settings.Configuration](https://github.com/serilog/serilog-settings-configuration). \ No newline at end of file +- The sink is configured in code, but could as well be configured in `appsettings.json` using [Serilog.Settings.Configuration](https://github.com/serilog/serilog-settings-configuration). diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index d36ec8e..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,12 +0,0 @@ -image: ubuntu - -stack: - - python 3.8 - -services: - - docker - -build_script: - - ./build/build.sh - -test: off diff --git a/build/build.sh b/build/build.sh deleted file mode 100755 index 630089e..0000000 --- a/build/build.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -euxo pipefail - -# Install docker-compose -pip install --upgrade pip -pip install docker-compose - -# Build -docker-compose build diff --git a/sample/sample.csproj b/sample/sample.csproj index c31baf2..daed594 100644 --- a/sample/sample.csproj +++ b/sample/sample.csproj @@ -7,7 +7,7 @@ - +