-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (36 loc) · 1.28 KB
/
Windows.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
name: Windows
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: 1 1 * * *
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: Init submodules
run: git submodule init && git submodule update
- name: Clean
run: dotnet clean ./Sanara.sln --configuration Release && dotnet nuget locals all --clear
- name: Install dependencies
run: dotnet restore
- name: Install ReThinkdb
run: curl -LO https://github.com/srh/rethinkdb/releases/download/v2.4.0-srh-win-1/rethinkdb-v2.4.0-srh-win-1-Release_x64.zip && unzip rethinkdb-v2.4.0-srh-win-1-Release_x64.zip
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Get ReThinkdb config
run: curl https://raw.githubusercontent.com/rethinkdb/rethinkdb/next/packaging/assets/config/default.conf.sample -o default.conf
- name: Start ReThinkdb
run: start rethinkdb.exe "install-service --config-file default.conf"
- name: Test
env:
YOUTUBE_KEY: ${{ secrets.YOUTUBE_KEY }}
run: dotnet test --no-restore --verbosity normal