forked from mirrors/jellyfin-plugin-sso
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: ci
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
|
|
permissions: {}
|
|
|
|
concurrency:
|
|
group: ci-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
jobs:
|
|
ci:
|
|
uses: IUCLabs/workflows/.github/workflows/pre-commit.yml@v0.1.1
|
|
permissions:
|
|
contents: read
|
|
with:
|
|
runs_on: iuclabs-k8s
|
|
|
|
actions:
|
|
uses: IUCLabs/workflows/.github/workflows/actions.yml@v0.1.1
|
|
permissions:
|
|
contents: read
|
|
with:
|
|
runs_on: ubuntu-latest
|
|
|
|
dotnet:
|
|
runs-on: iuclabs-k8s
|
|
permissions:
|
|
contents: read
|
|
env:
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: "1"
|
|
DOTNET_NOLOGO: "1"
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
|
|
with:
|
|
dotnet-version: 10.0.x
|
|
- run: dotnet restore SSO-Auth.sln
|
|
- run: dotnet build SSO-Auth.sln -c Release --no-restore --warnaserror
|
|
- run: dotnet test SSO-Auth.sln -c Release --no-build --verbosity minimal
|