Skip to content

Commit

Permalink
feat(repo): add gh test running workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AJCJ1 committed Dec 20, 2024
1 parent 7c1d817 commit 9756e2a
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: run tests

on:
push:

jobs:
test:
permissions:
contents: read
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [6.0]
steps:
- name: Checkout urlbox-dotnet
uses: actions/checkout@v4

- uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
cache: true
cache-dependency-path: "./UrlboxSDK"

- name: Install dependencies
run: dotnet restore

- name: Run tests
run: dotnet test
1 change: 1 addition & 0 deletions UrlboxSDK/UrlboxSDK.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<LangVersion>10.0</LangVersion>
<PackageId>Urlbox.sdk.dotnet</PackageId>
<Nullable>enable</Nullable>
Expand Down
45 changes: 45 additions & 0 deletions UrlboxSDK/packages.lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"version": 1,
"dependencies": {
"net6.0": {
"Microsoft.Extensions.DependencyInjection": {
"type": "Direct",
"requested": "[6.0.0, )",
"resolved": "6.0.0",
"contentHash": "k6PWQMuoBDGGHOQTtyois2u4AwyVcIwL2LaSLlTZQm2CYcJ1pxbt6jfAnpWmzENA/wfrYRI/X9DTLoUkE4AsLw==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
}
},
"Microsoft.Extensions.Options": {
"type": "Direct",
"requested": "[6.0.0, )",
"resolved": "6.0.0",
"contentHash": "dzXN0+V1AyjOe2xcJ86Qbo233KHuLEY0njf/P2Kw8SfJU+d45HNS2ctJdnEnrWbM9Ye2eFgaC5Mj9otRMU6IsQ==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
"Microsoft.Extensions.Primitives": "6.0.0"
}
},
"Microsoft.Extensions.DependencyInjection.Abstractions": {
"type": "Transitive",
"resolved": "6.0.0",
"contentHash": "xlzi2IYREJH3/m6+lUrQlujzX8wDitm4QGnUu6kUXTQAWPuZY8i+ticFJbzfqaetLA6KR/rO6Ew/HuYD+bxifg=="
},
"Microsoft.Extensions.Primitives": {
"type": "Transitive",
"resolved": "6.0.0",
"contentHash": "9+PnzmQFfEFNR9J2aDTfJGGupShHjOuGw4VUv+JB044biSHrnmCIMD+mJHmb2H7YryrfBEXDurxQ47gJZdCKNQ==",
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
}
},
"System.Runtime.CompilerServices.Unsafe": {
"type": "Transitive",
"resolved": "6.0.0",
"contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg=="
}
}
}
}

0 comments on commit 9756e2a

Please sign in to comment.