Merge pull request #118 from dlcs/feature/better_deser_err #197
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: DLCS Build, Test & Publish | |
on: | |
push: | |
branches: [ "main", "develop" ] | |
tags: [ "v*" ] | |
pull_request: | |
branches: [ "main", "develop" ] | |
paths-ignore: | |
- "docs/**" | |
- "scripts/**" | |
jobs: | |
test-dotnet: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: src/IIIFPresentation | |
env: | |
BUILD_CONFIG: "Release" | |
SOLUTION: "IIIFPresentation.sln" | |
steps: | |
- id: checkout | |
uses: actions/checkout@v4 | |
- id: setup-dotnet | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: "8.0.x" | |
- id: restore-dotnet-dependencies | |
run: dotnet restore $SOLUTION | |
- id: build-dotnet | |
run: | | |
dotnet build $SOLUTION --configuration $BUILD_CONFIG --no-restore | |
dotnet test --configuration $BUILD_CONFIG --no-restore --no-build --verbosity normal | |
build-push-api: | |
runs-on: ubuntu-latest | |
needs: test-dotnet | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/docker-build-and-push | |
with: | |
image-name: "presentation-api" | |
dockerfile: "Dockerfile.API" | |
context: "./src/IIIFPresentation" | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
build-push-migrator: | |
runs-on: ubuntu-latest | |
needs: test-dotnet | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/docker-build-and-push | |
with: | |
image-name: "presentation-migrator" | |
dockerfile: "Dockerfile.Migrator" | |
context: "./src/IIIFPresentation" | |
github-token: ${{ secrets.GITHUB_TOKEN }} |