forked from git-ecosystem/git-credential-manager
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (35 loc) · 1.06 KB
/
continuous-integration.yml
File metadata and controls
45 lines (35 loc) · 1.06 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
name: GCM
on:
workflow_dispatch:
push:
branches: [ main, linux ]
pull_request:
branches: [ main, linux ]
jobs:
validate_gcm:
name: "CI"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04, windows-2019, macos-latest]
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
with:
fetch-depth: 0 # Indicate full history so Nerdbank.GitVersioning works.
- name: Setup .NET
uses: actions/setup-dotnet@v3.0.3
with:
dotnet-version: 6.0.201
- name: Install dependencies
run: dotnet restore
- name: Build Windows
if: contains(matrix.os, 'windows')
run: dotnet build --configuration WindowsRelease
- name: Build Linux
if: contains(matrix.os, 'ubuntu')
run: dotnet build --configuration LinuxRelease
- name: Build macOS
if: contains(matrix.os, 'macos')
run: dotnet build --configuration MacRelease
- name: Test
run: dotnet test --verbosity normal