Windows #2033
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |