Skip to content

Windows

Windows #1794

Workflow file for this run

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