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
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.git
**/.vs
**/bin
**/obj
**/packages
**/*.user
**/*.userprefs
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
push:
pull_request:

jobs:
test:
name: Test
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false

- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: "8.0.x"
Comment thread
coderabbitai[bot] marked this conversation as resolved.

- name: Restore
run: dotnet restore MifielAPI/MifielAPI.sln

- name: Build
run: dotnet build MifielAPI/MifielAPI.sln --configuration Release --no-restore

- name: Test
run: dotnet test MifielAPI/MifielAPI.sln --configuration Release --no-build --verbosity normal
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,14 @@ publish/
*.nuget.props
*.nuget.targets

# Packed artifacts
artifacts/

# Local pre-release smoke tests
MifielAPI/MifielAPI.Tests/CsharpDocumentSmokeTests.cs
MifielAPI/MifielAPI.Tests/csharp-test-pdf.pdf
test.sh

# Microsoft Azure Build Output
csx/
*.build.csdef
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
- Default API host changed from `https://www.mifiel.com` to `https://app.mifiel.com`.
- Sandbox documentation and examples now use `https://app-sandbox.mifiel.com` instead of `https://sandbox.mifiel.com`.
- Package version jumped from `0.0.4` to `1.0.0` to mark this default-host breaking change.
- The library now targets **.NET 8 (`net8.0`)** instead of .NET Framework 4.5. .NET Framework and Mono are no longer supported. Consumers should use `dotnet add package MifielAPIClient` on .NET 8 or later.
- Packaging moved from Mono/`msbuild`/`nuget.exe` to the .NET SDK (`dotnet pack`, `dotnet nuget push`).

### Features

- Send a standardized `User-Agent` on API requests, e.g. `DOTNET/4.0.30319.42000 MifielAPIClient/1.0.0 HttpClient/4.0.0.0 (Unix/6.8.0)`.
- Send a standardized `User-Agent` on API requests, e.g. `DOTNET/8.0.0 MifielAPIClient/1.0.0 HttpClient/8.0.0.0 (Unix/24.6.0)`.

### Migration

Expand Down
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Build and run tests with the .NET SDK (this library targets net8.0).
# Usage:
# docker build -t csharp-api-client-tests .
# docker run --rm csharp-api-client-tests
FROM mcr.microsoft.com/dotnet/sdk:8.0

WORKDIR /src
COPY . /src

RUN dotnet restore MifielAPI/MifielAPI.sln \
&& dotnet build MifielAPI/MifielAPI.sln --configuration Release --no-restore \
&& chown -R app:app /src

USER app
CMD ["dotnet", "test", "MifielAPI/MifielAPI.sln", "--configuration", "Release", "--no-build", "--filter", "Category!=Smoke"]
6 changes: 0 additions & 6 deletions MifielAPI/.nuget/NuGet.Config

This file was deleted.

144 changes: 0 additions & 144 deletions MifielAPI/.nuget/NuGet.targets

This file was deleted.

Loading