-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (50 loc) · 1.49 KB
/
test.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
name: Unit tests
on: [push]
jobs:
unit_test:
strategy:
matrix:
os: [ { name: windows-2019, extension: '.exe' } ]
runs-on: ${{ matrix.os.name }}
steps:
- uses: actions/checkout@v1
- uses: mihails-strasuns/setup-dlang@v1
name: Install DMD
- name: Build
run: dub build
- name: Unit tests
run: dub test --coverage
- uses: actions/cache/save@v3
id: cache
with:
path: youtube-d${{ matrix.os.extension }}
key: youtube-d-${{ matrix.os.name }}
console_test:
strategy:
matrix:
os: [{ name: windows-2019, command: powershell.exe -file tests\tests.ps1, extension: '.exe' }]
runs-on: ${{ matrix.os.name }}
needs: unit_test
steps:
- uses: actions/checkout@v1
- uses: actions/cache/restore@v3
id: cache
with:
path: youtube-d${{ matrix.os.extension }}
key: youtube-d-${{ matrix.os.name }}
- name: Download libcurl.dll
if: matrix.os.name == 'windows-2019'
run: |
curl -LO https://downloads.dlang.org/other/libcurl-7.68.0-WinSSL-zlib-x86-x64.zip
tar -xf libcurl-7.68.0-WinSSL-zlib-x86-x64.zip
xcopy dmd2\windows\bin64\libcurl.dll .
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install mitmproxy
run: pip install mitmproxy
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
- name: e2e tests
run: ${{ matrix.os.command }}