Skip to content

Commit fc166af

Browse files
committed
Deployment: add a rudimentary test
1 parent bde958e commit fc166af

File tree

3 files changed

+69
-0
lines changed

3 files changed

+69
-0
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ indent_style = space
66
indent_size = 4
77
trim_trailing_whitespace = true
88
insert_final_newline = true
9+
10+
[*.yml]
11+
indent_size = 2

.github/workflows/main.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Main
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
schedule:
10+
- cron: '0 0 * * 6'
11+
12+
workflow_dispatch:
13+
14+
jobs:
15+
main:
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
config:
20+
- name: 'macos'
21+
image: 'macos-12'
22+
- name: 'linux'
23+
image: 'ubuntu-22.04'
24+
- name: 'windows'
25+
image: 'windows-2022'
26+
27+
name: main.${{ matrix.config.name }}
28+
runs-on: ${{ matrix.config.image }}
29+
30+
# noinspection SpellCheckingInspection
31+
env:
32+
DOTNET_NOLOGO: 1
33+
DOTNET_CLI_TELEMETRY_OPTOUT: 1
34+
NUGET_PACKAGES: ${{ github.workspace }}/.github/nuget-packages
35+
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v3
39+
40+
- name: NuGet cache
41+
uses: actions/cache@v3
42+
with:
43+
path: ${{ env.NUGET_PACKAGES }}
44+
key: ${{ runner.os }}.nuget.${{ hashFiles('**/*.fsproj') }}
45+
46+
- name: Set up .NET SDK
47+
uses: actions/setup-dotnet@v3
48+
with:
49+
dotnet-version: '8.0.x'
50+
51+
- name: Build
52+
run: dotnet build
53+
54+
- name: Test
55+
run: dotnet run --project ctor -- verify

Codingteam.Devops.sln

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A37A2B6B-F09B-4105-8AA5-47BA5D74B68A}"
99
ProjectSection(SolutionItems) = preProject
1010
.gitignore = .gitignore
11+
.editorconfig = .editorconfig
12+
EndProjectSection
13+
EndProject
14+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{C4672A21-FB21-4BBF-A0A1-512AC1B66C9A}"
15+
EndProject
16+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{67164D20-A669-4BC3-A40E-751D3045BA89}"
17+
ProjectSection(SolutionItems) = preProject
18+
.github\workflows\main.yml = .github\workflows\main.yml
1119
EndProjectSection
1220
EndProject
1321
Global
@@ -24,4 +32,7 @@ Global
2432
{E08EC4D8-5FD7-45CB-B48A-689005546B10}.Release|Any CPU.ActiveCfg = Release|Any CPU
2533
{E08EC4D8-5FD7-45CB-B48A-689005546B10}.Release|Any CPU.Build.0 = Release|Any CPU
2634
EndGlobalSection
35+
GlobalSection(NestedProjects) = preSolution
36+
{67164D20-A669-4BC3-A40E-751D3045BA89} = {C4672A21-FB21-4BBF-A0A1-512AC1B66C9A}
37+
EndGlobalSection
2738
EndGlobal

0 commit comments

Comments
 (0)