forked from rancher-sandbox/rancher-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (79 loc) · 2.33 KB
/
macM1-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
73
74
75
76
77
78
79
80
81
82
name: e2e tests on Mac M1
on:
workflow_dispatch:
schedule:
- cron: '15 8 * * 1-5'
jobs:
e2e-tests:
timeout-minutes: 45
runs-on: [self-hosted, macos-latest, arm64]
env:
M1: 1
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
ref: main
- uses: ./.github/actions/yarn-install
- name: Disable admin-access before start up
run: |
mkdir -p $HOME/Library/Preferences/rancher-desktop
touch $HOME/Library/Preferences/rancher-desktop/settings.json
cat <<EOF > $HOME/Library/Preferences/rancher-desktop/settings.json
{
"version": 5,
"application": {
"adminAccess": false
"updater": { "enabled": false },
},
"virtualMachine" {
"memoryInGB": 6,
},
"pathManagementStrategy": "rcfiles"
}
EOF
- name: Run Rancher Desktop in dev
run: |
yarn dev -- --no-modal-dialogs &
sleep 200
$HOME/.rd/bin/rdctl shutdown
wait
- name: Run e2e Tests
continue-on-error: false
run: yarn test:e2e
- name: Failed tests
if: failure()
run: mkdir -p ./e2e/reports
- name: Upload Artifacts
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: failure()
with:
name: e2etest-artifacts
path: ./e2e/reports/*
- name: Cleanup test environment
run: |
#set -x
cd $HOME/Library
pushd Logs/rancher-desktop
for x in *.log ; do
echo -n '' > $x
done
popd
rm -fr "Application Support/rancher-desktop"
rm -fr Preferences/rancher-desktop
rm -fr Caches/rancher-desktop/k3s-versions.json
cd $HOME/.rd/bin
for x in helm kubectl nerdctl docker ; do
if [[ -L $x ]] ; then # && $(readlink $x):]] ; then
rm -f $x
fi
done
if: always()
- name: End stray processes
run: |
for x in nuxt qemu ; do
echo $x
ps auxww | grep $x
done
ps auxww | grep rancher | grep -vi -e goland
if: always()