diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..74550d7
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,28 @@
+name: Build
+
+on:
+ pull_request:
+ branches: [ master ]
+ push:
+ branches: [ master ]
+
+jobs:
+ build_and_test:
+
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ubuntu-latest]
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Setup .NET Core
+ uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: 3.1.301
+ - name: Install dependencies
+ run: dotnet restore
+ - name: Build
+ run: dotnet build --configuration Release --no-restore
+ - name: Test
+ run: dotnet test --configuration Release -f netcoreapp3.1 --no-restore
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
new file mode 100644
index 0000000..8fa6f47
--- /dev/null
+++ b/.github/workflows/publish.yml
@@ -0,0 +1,28 @@
+name: Publish
+
+on:
+ push:
+ tags: ['**']
+
+jobs:
+ build_and_test_and_publish:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Setup .NET Core
+ uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: 3.1.301
+ - name: Install dependencies
+ run: dotnet restore
+ - name: Build
+ run: dotnet build --configuration Release --no-restore
+ - name: Test
+ run: dotnet test --configuration Release -f netcoreapp3.1 --no-restore
+ - name: Publish Nuget Packages
+ run: dotnet nuget push **\*.nupkg -k "$API_KEY" -s https://api.nuget.org/v3/index.json --skip-duplicate
+ env:
+ API_KEY: ${{ secrets.API_KEY }}
+
diff --git a/Directory.Build.props b/Directory.Build.props
index 8be4943..c3bbbf7 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -15,4 +15,4 @@
-
\ No newline at end of file
+
diff --git a/README.md b/README.md
index 678e9f7..f272235 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-[](https://ci.appveyor.com/project/Deffiss/testenvironment-docker/branch/master) [](https://www.nuget.org/packages/TestEnvironment.Docker/)
+[](https://github.com/Deffiss/testenvironment-docker/actions?query=workflow%3ABuild) [](https://www.nuget.org/packages/TestEnvironment.Docker/)
# Test environment with Docker containers
@@ -74,4 +74,4 @@ Ideally, use the [`--filter`](https://docs.docker.com/engine/reference/commandli
### Release Notes
-* Implement `IAsyncDisposable` interface.
\ No newline at end of file
+* Implement `IAsyncDisposable` interface.
diff --git a/appveyor.yml b/appveyor.yml
deleted file mode 100644
index c8b88cb..0000000
--- a/appveyor.yml
+++ /dev/null
@@ -1,13 +0,0 @@
-version: '1.0.0.{build}'
-image: Ubuntu
-services:
- - docker
-configuration: Release
-environment:
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
-build_script:
- - dotnet build TestEnvironment.sln -c Release
-test_script:
- - dotnet test ./test/TestEnvironment.Docker.Tests/TestEnvironment.Docker.Tests.csproj -c Release
-artifacts:
- - path: '**\*.nupkg'
\ No newline at end of file