Skip to content

Update tanstack-query monorepo to v5.100.11 #999

Update tanstack-query monorepo to v5.100.11

Update tanstack-query monorepo to v5.100.11 #999

Workflow file for this run

name: CI
on: [push, pull_request, workflow_dispatch]
concurrency:
group: environment-${{github.ref}}
cancel-in-progress: true
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
GITHUBACTIONS: "True"
jobs:
build:
name: ${{ matrix.platform.name }} ${{ matrix.dotnet.name }}
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
platform:
- { name: Linux, os: ubuntu-24.04 }
- { name: Windows, os: windows-2025 }
- { name: macOS, os: macos-15 }
dotnet:
- { name: .NET 8, version: "8.0.x" }
- { name: .NET 9, version: "9.0.x" }
- { name: .NET 10, version: "10.0.x" }
steps:
- name: Check out Jobbr
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup NodeJS
uses: actions/setup-node@v6
with:
node-version: 24
- name: Install NPM Dependencies
working-directory: src/Dashboard.Frontend
run: npm install
- name: Setup .NET ${{ matrix.dotnet.version }} SDK
id: setup-dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ matrix.dotnet.version }}
- name: Enforce SDK Version
run: dotnet new globaljson --sdk-version ${{ steps.setup-dotnet.outputs.dotnet-version }} --force
- name: Verify SDK Installation
run: dotnet --info
continue-on-error: true
- name: Install Jobbr Dependencies
run: dotnet restore
- name: Build Jobbr
run: dotnet build --configuration Release --no-restore
- name: Install SQL Server on Linux
if: runner.os == 'Linux' && matrix.dotnet.name == '.NET 8'
run: docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=1StrongPwd!!" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2019-latest
- name: Install SQL Server on Windows
if: runner.os == 'Windows' && matrix.dotnet.name == '.NET 8'
run: choco install sql-server-2019 -y --params="'/Q /SUPPRESSPRIVACYSTATEMENTNOTICE /IACCEPTSQLSERVERLICENSETERMS /ACTION=Install /SkipRules=RebootRequiredCheck /FEATURES=SQLENGINE /SECURITYMODE=SQL /TCPENABLED=1 /SAPWD=1StrongPwd!!'"
- name: Test Jobbr
if: matrix.dotnet.name == '.NET 8' && matrix.platform.name != 'macOS'
run: dotnet test --configuration Release --no-restore --logger GitHubActions
- name: Pack Jobbr
run: dotnet pack --configuration Release -o publish --include-symbols -p:SymbolPackageFormat=snupkg
- name: Upload Jobbr NuGet Packages
uses: actions/upload-artifact@v7
with:
name: jobbr-${{ matrix.platform.os }}-${{ matrix.dotnet.version }}
path: publish/*nupkg
- name: Publish Jobbr NuGet Packages
if: github.ref == 'refs/heads/master' && matrix.dotnet.name == '.NET 8' && runner.os == 'Windows'
run: |
foreach($file in (Get-ChildItem publish -Recurse -Include *.nupkg)) {
dotnet nuget push $file --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
}