-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (54 loc) · 1.59 KB
/
check.yml
File metadata and controls
64 lines (54 loc) · 1.59 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: "check"
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
test-versions:
permissions:
contents: read
actions: write
checks: write
strategy:
matrix:
csharpFunctionalExtensionsVersion: ["2.29.0", "2.*", "3.0.0", "3.*"]
fail-fast: false
uses: ./.github/workflows/test-version.yml
with:
csharpFunctionalExtensionsVersion: ${{ matrix.csharpFunctionalExtensionsVersion }}
check:
runs-on: ubuntu-latest
needs: test-versions
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
7
8
9.0.201
10.0.100
- name: Install .NET tools
run: dotnet tool restore
- name: Install .NET dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore -p:ContinuousIntegrationBuild=true
- name: Pack
run: dotnet pack ./CSharpFunctionalExtensions.HttpResults/CSharpFunctionalExtensions.HttpResults.csproj -c Release -p:ContinuousIntegrationBuild=true -p:Version=0.0.0 --output dist/package
- name: Lint
run: dotnet csharpier check .
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v2
with:
fail: true
args: --remap '${{ github.event.repository.default_branch }} ${{ github.head_ref || github.ref_name }}' .
jobSummary: true
format: markdown