forked from rancher-sandbox/rancher-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (70 loc) · 2.15 KB
/
linux-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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: e2e tests on Linux
on:
workflow_dispatch:
push:
branches-ignore:
- 'dependabot/**'
pull_request: {}
jobs:
check-paths:
uses: ./.github/workflows/paths-ignore.yaml
e2e-tests:
needs: check-paths
if: needs.check-paths.outputs.should-run == 'true'
timeout-minutes: 150
runs-on: ubuntu-latest
steps:
- 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@v5
with:
go-version-file: go.work
cache-dependency-path: src/go/**/go.sum
# For now, we don't need to `pip install setuptools` because we're not on
# Python 3.12; we will need that later, however.
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Disable admin-access before start up
run: |
mkdir -p $HOME/.config/rancher-desktop
cat <<EOF > $HOME/.config/rancher-desktop/settings.json
{
"version": 5,
"application": {
"adminAccess": false
}
}
EOF
- name: Enable kvm access
run: sudo chmod a+rwx /dev/kvm
- name: Run e2e Tests
continue-on-error: false
run: >-
xvfb-run --auto-servernum --server-args='-screen 0 1280x960x24'
yarn test:e2e
env:
RD_DEBUG_ENABLED: '1'
CI: true
timeout-minutes: 150
- name: Upload failure reports
uses: actions/upload-artifact@v4
if: always()
with:
name: failure-reports.zip
path: ./e2e/reports/*
- name: Clean up test environment
run: |
rm -f $HOME/.config/rancher-desktop.defaults.json
rm -f $HOME/.config/rancher-desktop.locked.json
if: always()