Skip to content

Windows support

Windows support #1228

Workflow file for this run

name: Unit Tests
on:
push:
branches:
- main
pull_request:
jobs:
core_test:
runs-on: ubuntu-latest
container:
image: dart:3.0.0
steps:
- uses: actions/checkout@v1
- name: Install dependencies sidekick_core
run: cd sidekick_core && dart pub get --no-precompile
- name: Run tests sidekick_core
run: cd sidekick_core && dart test
core_test_windows:
runs-on: windows-2022
steps:
- name: Set up Chocolatey
run: Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
- name: Install Dart SDK
run: choco install dart-sdk --version 3.0.0
- name: Set up Dart in PATH
shell: powershell
run: |
$dartSdkPath = (Get-Command dart).Source
$dartSdkDir = Split-Path -Parent $dartSdkPath
echo "::add-path::$dartSdkDir"
- uses: actions/checkout@v1
- name: Install dependencies sidekick_core
run: cd sidekick_core && dart pub get --no-precompile
- name: Run tests sidekick_core
run: cd sidekick_core && dart test
vault_test:
runs-on: ubuntu-latest
container:
image: dart:3.0.0
steps:
- uses: actions/checkout@v1
- name: Install dependencies sidekick_vault
run: cd sidekick_vault && dart pub get --no-precompile
- name: Install gpg
run: apt-get update && apt-get install -y gpg
- name: Run tests sidekick_vault
run: cd sidekick_vault && dart test
plugin_installer:
runs-on: ubuntu-latest
container:
image: dart:3.0.0
steps:
- uses: actions/checkout@v1
- name: Install dependencies sidekick_plugin_installer
run: cd sidekick_plugin_installer && dart pub get --no-precompile
- name: Run tests sidekick_plugin_installer
run: cd sidekick_plugin_installer && dart test
sk_sidekick:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies sk_sidekick
run: ./sk
- name: Run tests sk_sidekick
run: cd sk_sidekick && ./build/cache/dart-sdk/bin/dart test