Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/pip/src/api-legacy/pypdf2-1.27.9
Browse files Browse the repository at this point in the history
  • Loading branch information
tschumpr authored Nov 30, 2023
2 parents 73c4292 + 299ab1b commit add9741
Show file tree
Hide file tree
Showing 12 changed files with 138 additions and 96 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
name: Build and run tests

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v2
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

Expand All @@ -27,10 +27,10 @@ jobs:
- name: Run dotnet tests
run: dotnet test BDMS.sln -c Release --no-build --verbosity normal --filter TestCategory!=LongRunning

- name: Setup Node.js 16
uses: actions/setup-node@v3
- name: Setup Node.js 20
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

- working-directory: ./src/client
run: npm ci
Expand All @@ -47,10 +47,10 @@ jobs:
containers: [1, 2, 3, 4, 5]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v2
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: 'Dependency Review'
uses: actions/dependency-review-action@v2
uses: actions/dependency-review-action@v3
16 changes: 8 additions & 8 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set environment variables
run: |
Expand All @@ -28,7 +28,7 @@ jobs:
- name: Collect Docker image metadata
id: meta-api-legacy
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.BASE_IMAGE_NAME }}-api-legacy
labels: |
Expand All @@ -43,7 +43,7 @@ jobs:
- name: Collect Docker image metadata
id: meta-api
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.BASE_IMAGE_NAME }}-api
labels: |
Expand All @@ -58,7 +58,7 @@ jobs:
- name: Collect Docker image metadata
id: meta-client
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.BASE_IMAGE_NAME }}-client
labels: |
Expand All @@ -72,14 +72,14 @@ jobs:
type=semver,pattern=v{{version}},value=${{ env.VERSION }}
- name: Log in to the GitHub container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image (api-legacy)
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: ./src/api-legacy
push: true
Expand All @@ -92,7 +92,7 @@ jobs:
cache-to: type=inline

- name: Build and push Docker image (api)
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: ./src/api
push: true
Expand All @@ -105,7 +105,7 @@ jobs:
cache-to: type=inline

- name: Build and push Docker image (client)
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: ./src/client
target: deploy
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set environment variables
run: |
Expand All @@ -32,7 +32,7 @@ jobs:
- name: Collect Docker image metadata
id: meta-api-legacy
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.BASE_IMAGE_NAME }}-api-legacy
labels: |
Expand All @@ -44,7 +44,7 @@ jobs:
- name: Collect Docker image metadata
id: meta-api
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.BASE_IMAGE_NAME }}-api
labels: |
Expand All @@ -56,7 +56,7 @@ jobs:
- name: Collect Docker image metadata
id: meta-client
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.BASE_IMAGE_NAME }}-client
labels: |
Expand All @@ -67,14 +67,14 @@ jobs:
type=semver,pattern=v{{version}}
- name: Log in to the GitHub container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image (api-legacy)
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: ./src/api-legacy
push: true
Expand All @@ -87,7 +87,7 @@ jobs:
cache-to: type=inline

- name: Build and push Docker image (api)
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: ./src/api
push: true
Expand All @@ -100,7 +100,7 @@ jobs:
cache-to: type=inline

- name: Build and push Docker image (client)
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: ./src/client
target: deploy
Expand All @@ -119,7 +119,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set environment variables
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/api/BDMS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AnalysisLevel>latest-all</AnalysisLevel>
<AnalysisLevel>6.0-latest</AnalysisLevel>
<NoWarn>CS1591,CS8618,CS8620</NoWarn>
<Product>BDMS</Product>
<Authors>GeoWerkstatt GmbH</Authors>
Expand Down
2 changes: 1 addition & 1 deletion src/api/Controllers/UploadController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public async Task<ActionResult<int>> UploadFileAsync(int workgroupId, IFormFile
}
catch (Exception ex)
{
logger.LogError("Invalid code list value of any multi code list property.", ex);
logger.LogError(ex, "Invalid code list value of any multi code list property.");
throw;
}

Expand Down
2 changes: 1 addition & 1 deletion src/client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM cypress/included:12.4.0 AS development
FROM cypress/included:13.6.0 AS development
ARG VERSION
ARG REVISION
ENV REACT_APP_VERSION ${VERSION}+${REVISION}
Expand Down
6 changes: 6 additions & 0 deletions src/client/cypress/support/e2e.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { interceptApiCalls, loginAndResetState } from "../e2e/testHelpers";

Cypress.on('uncaught:exception', () => {
// returning false here prevents Cypress from
// failing the test
return false;
});

beforeEach(() => {
interceptApiCalls();
loginAndResetState();
Expand Down
Loading

0 comments on commit add9741

Please sign in to comment.