-
Notifications
You must be signed in to change notification settings - Fork 134
42 lines (32 loc) · 1.01 KB
/
ci.yml
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
name: Continuous Integration
on: pull_request
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
framework-version: [net462, net6.0]
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Install Mono
if: matrix.framework-version == 'net462'
run: |
sudo apt update
sudo apt install -y mono-complete
- name: Install dependencies
run: dotnet restore FirebaseAdmin/FirebaseAdmin.sln
- name: Build with dotnet
run: dotnet build FirebaseAdmin/FirebaseAdmin.sln --configuration Release --no-restore
- name: Run unit tests
run: |
dotnet test FirebaseAdmin/FirebaseAdmin.Tests --configuration Release --no-restore --no-build --framework ${{ matrix.framework-version }}