-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (29 loc) · 1.34 KB
/
Copy pathci.yml
File metadata and controls
33 lines (29 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: CI
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- run: dotnet restore
- run: dotnet build GhActionsDoctor.sln --configuration Release --no-restore
- run: dotnet test GhActionsDoctor.sln --configuration Release --no-build
- run: dotnet pack src/GhActionsDoctor.Cli --configuration Release --no-build
- run: dotnet run --project src/GhActionsDoctor.Cli --configuration Release --no-build -- scan --fail-on warning
- run: dotnet run --project src/GhActionsDoctor.Cli --configuration Release --no-build -- scan --path samples/bad --format json --fail-on none
- run: dotnet run --project src/GhActionsDoctor.Cli --configuration Release --no-build -- scan --path samples/bad --format github-annotations --fail-on none
- run: dotnet run --project src/GhActionsDoctor.Cli --configuration Release --no-build -- scan --path samples/bad --format sarif --fail-on none
- run: dotnet run --project src/GhActionsDoctor.Cli --configuration Release --no-build -- fix --path samples/good --dry-run