Skip to content

chore(deps): update dependency microsoft.net.test.sdk to v17.9.0 #2382

chore(deps): update dependency microsoft.net.test.sdk to v17.9.0

chore(deps): update dependency microsoft.net.test.sdk to v17.9.0 #2382

Workflow file for this run

name: "Build Library"
on:
push:
branches:
- main
paths-ignore:
- "DisCatSharp.Docs/**"
- "DisCatSharp.Archive/**"
- "DisCatSharp.Tools/**"
- "DisCatSharp.Logos/**"
- "DisCatSharp.Attributes/**"
- "*.md"
- "*.json"
pull_request:
merge_group:
workflow_dispatch:
env:
DOTNET_NOLOGO: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: true
jobs:
build:
timeout-minutes: 15
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
name: Build library
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/[email protected]
with:
dotnet-version: |
8.0.101
7.0.404
- name: Restore dependencies
run: |
dotnet restore --no-cache -f -v minimal DisCatSharp.sln
dotnet restore --no-cache -f -v minimal DisCatSharp.Tools/DisCatSharp.Tools.sln
- name: Build library
run: dotnet build -c Release -v minimal --no-restore DisCatSharp.sln
- name: Build tools
run: dotnet build -c Release -v minimal --no-restore DisCatSharp.Tools/DisCatSharp.Tools.sln
- name: Test library
run: dotnet test -v minimal -c Release --no-restore --no-build DisCatSharp.sln
pack:
timeout-minutes: 15
runs-on: ubuntu-latest
name: "Pack and Artifact"
needs: build
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/[email protected]
with:
dotnet-version: |
8.0.101
7.0.404
- name: Restore Packages
run: dotnet restore --no-cache -f -v minimal DisCatSharp.sln
- name: Build library
run: dotnet build -c Release -v minimal --no-restore DisCatSharp.sln
- name: Publish library
run: dotnet pack -c Release -v minimal --no-build --no-restore --include-symbols --include-source -o ./artifacts DisCatSharp.sln
- name: Upload artifacts
uses: actions/[email protected]
with:
name: DisCatSharp
path: ./artifacts/