forked from ForNeVeR/TruePath
-
Notifications
You must be signed in to change notification settings - Fork 0
100 lines (99 loc) · 2.7 KB
/
main.yml
File metadata and controls
100 lines (99 loc) · 2.7 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# SPDX-FileCopyrightText: 2024-2026 TruePath contributors <https://github.com/ForNeVeR/TruePath>
#
# SPDX-License-Identifier: MIT
# This file is auto-generated.
name: Main
on:
push:
branches:
- main
- renovate/**
pull_request:
branches:
- main
schedule:
- cron: 0 0 * * 6
workflow_dispatch:
jobs:
verify-workflows:
runs-on: ubuntu-24.04
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1
NUGET_PACKAGES: ${{ github.workspace }}/.github/nuget-packages
steps:
- name: Check out the sources
uses: actions/checkout@v6
- name: Set up .NET SDK
uses: actions/setup-dotnet@v5
- name: Cache NuGet packages
uses: actions/cache@v5
with:
key: ${{ runner.os }}.nuget.${{ hashFiles('**/*.*proj', '**/*.props') }}
path: ${{ env.NUGET_PACKAGES }}
- run: dotnet fsi ./scripts/github-actions.fsx verify
check:
strategy:
matrix:
image:
- macos-15
- ubuntu-24.04
- ubuntu-24.04-arm
- windows-11-arm
- windows-2025
fail-fast: false
runs-on: ${{ matrix.image }}
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1
NUGET_PACKAGES: ${{ github.workspace }}/.github/nuget-packages
steps:
- name: Check out the sources
uses: actions/checkout@v6
- name: Set up .NET SDK
uses: actions/setup-dotnet@v5
- name: Cache NuGet packages
uses: actions/cache@v5
with:
key: ${{ runner.os }}.nuget.${{ hashFiles('**/*.*proj', '**/*.props') }}
path: ${{ env.NUGET_PACKAGES }}
- name: Build
run: dotnet build
- name: Test
run: dotnet test
timeout-minutes: 10
licenses:
runs-on: ubuntu-24.04
steps:
- name: Check out the sources
uses: actions/checkout@v6
- name: REUSE license check
uses: fsfe/reuse-action@v6
encoding:
runs-on: ubuntu-24.04
steps:
- name: Check out the sources
uses: actions/checkout@v6
- name: Verify encoding
shell: pwsh
run: scripts/Test-Encoding.ps1
nowarn-empty:
runs-on: ubuntu-24.04
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1
NUGET_PACKAGES: ${{ github.workspace }}/.github/nuget-packages
steps:
- name: Check out the sources
uses: actions/checkout@v6
- name: Set up .NET SDK
uses: actions/setup-dotnet@v5
- name: Cache NuGet packages
uses: actions/cache@v5
with:
key: ${{ runner.os }}.nuget.${{ hashFiles('**/*.*proj', '**/*.props') }}
path: ${{ env.NUGET_PACKAGES }}
- name: Check out the sources
uses: actions/checkout@v6
- name: Verify with NoWarn as empty
run: dotnet build /p:NoWarn='' --no-incremental