Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# directories
**/bin/
**/obj/
**/out/

# files
Dockerfile*
**/*.md

!README.md
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up .NET
uses: actions/setup-dotnet@v3
- name: Build
run: docker build --target build .
- name: Test
run: docker build --target test .

integration-tests:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 10.0.x
- name: Restore
run: dotnet restore test/StrEnum.Npgsql.EntityFrameworkCore.IntegrationTests/StrEnum.Npgsql.EntityFrameworkCore.IntegrationTests.csproj
- name: Build
run: dotnet build test/StrEnum.Npgsql.EntityFrameworkCore.IntegrationTests/StrEnum.Npgsql.EntityFrameworkCore.IntegrationTests.csproj -c Release --no-restore
- name: Test
run: dotnet test test/StrEnum.Npgsql.EntityFrameworkCore.IntegrationTests/StrEnum.Npgsql.EntityFrameworkCore.IntegrationTests.csproj -c Release --no-build --logger "console;verbosity=normal"
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
release:
types: [released]
jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up .NET
uses: actions/setup-dotnet@v3
- name: Set VERSION variable from tag
run: echo "VERSION=${GITHUB_REF/refs\/tags\/}" >> $GITHUB_ENV
- name: Build
run: docker build --target build .
- name: Test
run: docker build --target test .
- name: Pack & Publish
run: docker build --target pack-and-push --build-arg PackageVersion=${VERSION} --build-arg NuGetApiKey=${{secrets.NUGET_API_KEY}} .

Loading
Loading