Skip to content

Update dependency Microsoft.SourceLink.GitHub to 10.0.200 #598

Update dependency Microsoft.SourceLink.GitHub to 10.0.200

Update dependency Microsoft.SourceLink.GitHub to 10.0.200 #598

Workflow file for this run

name: Build and Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
types: [ opened, synchronize, reopened ]
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 50
- run: git fetch --tags
- name: Setup .NET
uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5
with:
dotnet-version: 10.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: MOCK_MODE=Playback dotnet test --no-build --verbosity normal --filter "Category!=RequiresAccountAccess"
- name: Pack
if: github.ref == 'refs/heads/master'
run: dotnet pack -c Debug -o Build
- name: "Github packages: Nuget push"
if: github.ref == 'refs/heads/master'
run: dotnet nuget push --no-symbols --skip-duplicate -k ${{ secrets.GITHUB_TOKEN }} -s "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" Build/*.nupkg
- name: "Github packages: Cleanup"
if: github.ref == 'refs/heads/master'
uses: stripethree/gpr-janitor@dist
with:
dry-run: false
keep-versions: 25
min-age-days: 14
versions-to-fetch: 20
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}