-
Notifications
You must be signed in to change notification settings - Fork 5
78 lines (64 loc) · 2.27 KB
/
unit_tests.yaml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
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: Add Dart SDK to PATH
shell: powershell
run: |
$dartSdkPath = "C:\\tools\\dart-sdk\\bin"
echo $dartSdkPath | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- 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