Skip to content
Open
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 .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@
# in Unix via a file share from Windows, the scripts will work.
*.sh text eol=lf

# .editorconfig declares end_of_line = crlf for the entire tree. Force CRLF in
# the working copy so cross-platform CI (and Linux/macOS contributors) see the
# files exactly as editorconfig demands -- otherwise the IDE0055 formatting
# analyzer (treat-warnings-as-errors) fails the build on non-Windows runners.
*.cs text eol=crlf
*.csproj text eol=crlf
*.props text eol=crlf
*.targets text eol=crlf
*.editorconfig text eol=crlf

###############################
# Git Large File System (LFS) #
###############################
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/cross-platform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Cross-platform verification

on:
push:
branches: [main, develop]
paths-ignore:
- "**.md"
- ".github/ISSUE_TEMPLATE/**"
- ".github/pull_request_template.md"
pull_request:
paths-ignore:
- "**.md"
- ".github/ISSUE_TEMPLATE/**"
- ".github/pull_request_template.md"
workflow_dispatch:

concurrency:
group: cross-platform-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
verify:
name: Build & Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

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

- name: Setup .NET SDK 10.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x

- name: Install libsecret (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libsecret-1-0

- name: Restore
run: dotnet restore CredentialCache.sln

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

- name: Test
run: dotnet test CredentialCache.Test/CredentialCache.Test.csproj --configuration Release --no-build
6 changes: 5 additions & 1 deletion CredentialCache.Test/CredentialCache.Test.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<Project>
<Project>
<Sdk Name="MSTest.Sdk" />
<Sdk Name="ktsu.Sdk" />

<PropertyGroup>
<IsTestProject>true</IsTestProject>
<TargetFramework>net10.0</TargetFramework>
<TargetFrameworks></TargetFrameworks>
<!-- Avoid pulling Microsoft.NETCore.App.Host.{distro-specific}-RID packages
that some SDK builds resolve based on the host distro. Tests run via
`dotnet test` / `dotnet exec` and don't need an apphost executable. -->
<UseAppHost>false</UseAppHost>
</PropertyGroup>

<ItemGroup>
Expand Down
Loading
Loading