119 lines (109 loc) · 3.41 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
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# On branch push, download the windows testing bundle build and run it.
name: windows
on:
push:
branches:
- master
- bors/staging
- bors/trying
- 'release/v*'
pull_request:
jobs:
setup:
runs-on: windows-2016
name: Download testing bundle
steps:
- name: 'Wait for Hydra build'
uses: rvl/hydra-build-products-action@master
id: hydra
with:
hydra: 'https://hydra.iohk.io'
jobs: 'cardano-wallet-tests-win64'
- name: 'Fetch Windows testing bundle'
shell: powershell
run: |
$output = "cardano-wallet-tests-win64.zip"
Invoke-WebRequest -Uri ${{ steps.hydra.outputs.buildProducts }} -OutFile $output
Expand-Archive -LiteralPath $output -DestinationPath .
Get-ChildItem
- name: Save files
uses: actions/upload-artifact@v2
with:
name: cardano-wallet-tests-win64
path: "**/*"
cardano-wallet-core-test-unit:
name: 'cardano-wallet-core:unit'
needs: setup
runs-on: windows-2016
steps:
- uses: actions/download-artifact@v2
with:
name: cardano-wallet-tests-win64
- run: '.\\cardano-wallet-core-test-unit.exe --color --jobs 1 --skip /Cardano.Wallet.DB.Sqlite/ +RTS -M2G -N2'
cardano-wallet-test-unit:
name: 'cardano-wallet:unit'
needs: setup
runs-on: windows-2016
steps:
- uses: actions/download-artifact@v2
with:
name: cardano-wallet-tests-win64
- run: '.\\cardano-wallet-test-unit.exe --color'
cardano-wallet-cli-test-unit:
name: 'cardano-wallet-cli:unit'
needs: setup
runs-on: windows-2016
steps:
- uses: actions/download-artifact@v2
with:
name: cardano-wallet-tests-win64
- run: '.\\cardano-wallet-cli-test-unit.exe --color'
text-class-test-unit:
name: 'test-class:unit'
needs: setup
runs-on: windows-2016
steps:
- uses: actions/download-artifact@v2
with:
name: cardano-wallet-tests-win64
- run: '.\\text-class-test-unit.exe --color'
cardano-wallet-launcher-test-unit:
name: 'cardano-wallet-launcher:unit'
needs: setup
runs-on: windows-2016
steps:
- uses: actions/download-artifact@v2
with:
name: cardano-wallet-tests-win64
- run: '.\\cardano-wallet-launcher-test-unit.exe --color'
continue-on-error: true
cardano-wallet-test-integration:
name: 'cardano-wallet:integration'
needs: setup
if: ${{ startsWith(github.ref, 'refs/heads/bors/') || startsWith(github.ref, 'refs/heads/release/v') }}
runs-on: windows-2016
steps:
- uses: actions/download-artifact@v2
with:
name: cardano-wallet-tests-win64
- run: '.\\cardano-wallet-test-integration.exe --color'
timeout-minutes: 60
finish:
name: Finish
runs-on: windows-2016
if: always()
needs:
- cardano-wallet-core-test-unit
- cardano-wallet-test-unit
- cardano-wallet-cli-test-unit
- text-class-test-unit
- cardano-wallet-launcher-test-unit
- cardano-wallet-test-integration
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: "Advance windows-tests-pass and all-tests-pass branches"
if: github.ref == 'ref/heads/master'
shell: bash
run: 'bash .buildkite/push-branch.sh windows-tests-pass linux-tests-pass all-tests-pass'