-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.09 KB
/
dotnet.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
43
44
45
name: dotnet CI
# Trigger the workflow on push or pull request, but only for the master branch
on:
pull_request:
push:
branches: [master]
jobs:
cabal:
name: ${{ matrix.os }} - dotnet ${{ matrix.dotnet-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
dotnet-version: ['6.0.x']
steps:
- uses: actions/checkout@v2
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master'
- uses: actions/setup-dotnet@v1.7.2
with:
dotnet-version: ${{ matrix.dotnet-version }}
- uses: actions/cache@v2.1.3
name: Cache nuget packages
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
- name: Create configuration file
run: cp config-sample.json config.json
- name: Install dependencies
run: |
dotnet restore
- name: Build
run: |
dotnet build
- name: Test
run: |
dotnet test test/test.fsproj