-
Notifications
You must be signed in to change notification settings - Fork 34
34 lines (31 loc) · 1.1 KB
/
test.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
name: Test
on:
[push]
env:
dotapns_tests_p8_contents: ${{secrets.DOTAPNS_TESTS_P8_CONTENTS}}
dotapns_tests_p8_path: ${{secrets.DOTAPNS_TESTS_P8_PATH}}
dotapns_tests_p12_base64enc: ${{secrets.DOTAPNS_TESTS_P12_BASE64ENC}}
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Create test JWT file
run: echo "$dotapns_tests_p8_contents" > "jwt.p8"
shell: bash
- name: Clear local NuGet cache (workaround for failed restores on windows-latest)
run: dotnet nuget locals all --clear
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test for .NET Core 3.1
run: dotnet test --no-build --verbosity normal --framework netcoreapp3.1
- name: Test for .NET 6
run: dotnet test --no-build --verbosity normal --framework net6.0
- name: Test for .NET Framework 4.6
run: dotnet test --no-build --verbosity normal --framework net46
if: matrix.os == 'windows-latest'