-
Notifications
You must be signed in to change notification settings - Fork 284
56 lines (54 loc) · 1.68 KB
/
windows-e2e.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
name: e2e tests on Windows
on:
schedule:
- cron: '13 5 * * 1-5'
workflow_dispatch: {}
defaults:
run:
shell: powershell
jobs:
e2e-tests:
timeout-minutes: 90
runs-on: [self-hosted, Windows, X64, win11]
steps:
- run: wsl --unregister rancher-desktop
continue-on-error: true
- run: wsl --unregister rancher-desktop-data
continue-on-error: true
- run: Remove-Item -Path "$HOME/AppData/Local/rancher-desktop" -Recurse -Force -ErrorAction Ignore
- name: Remove golang module cache
run: Remove-Item -Path "$HOME/go/pkg/mod" -Recurse -Force -ErrorAction Ignore
- uses: actions/checkout@v4
with:
persist-credentials: false
# For compatibility with runners without yarn, we need to install node
# once, install yarn, then install node again to get caching.
- uses: actions/setup-node@v4
with:
node-version: '18.16.x'
- run: npm install --global yarn
- uses: actions/setup-node@v4
with:
node-version: '18.16.x'
cache: yarn
- uses: actions/setup-go@v4
with:
go-version: '^1.21'
cache: 'true'
cache-dependency-path: src/go/**/go.sum
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- run: pip install setuptools
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run e2e Tests
run: yarn test:e2e
env:
RD_DEBUG_ENABLED: '1'
- name: Upload failure reports
uses: actions/upload-artifact@v3
if: failure()
with:
name: e2etest-artifacts
path: ./e2e/reports/*