File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : E2E Personal (push only)
2+
3+ on :
4+ push :
5+ branches-ignore :
6+ - master
7+ - main
8+
9+ permissions :
10+ contents : read
11+
12+ jobs :
13+ e2e_personal :
14+ runs-on : ubuntu-latest
15+ container : fedora:latest
16+ environment : onedrive-e2e
17+
18+ steps :
19+ - uses : actions/checkout@v4
20+
21+ - name : Install deps
22+ run : |
23+ dnf -y update
24+ dnf -y group install development-tools
25+ dnf -y install ldc libcurl-devel sqlite-devel dbus-devel
26+
27+ - name : Build + local install prefix
28+ run : |
29+ ./configure --prefix="$PWD/.ci/prefix"
30+ make -j"$(nproc)"
31+ make install
32+ "$PWD/.ci/prefix/bin/onedrive" --version
33+
34+ - name : Prepare isolated HOME
35+ run : |
36+ set -euo pipefail
37+ export HOME="$RUNNER_TEMP/home-personal"
38+ echo "HOME=$HOME" >> "$GITHUB_ENV"
39+ echo "XDG_CONFIG_HOME=$HOME/.config" >> "$GITHUB_ENV"
40+ echo "XDG_CACHE_HOME=$HOME/.cache" >> "$GITHUB_ENV"
41+ mkdir -p "$HOME"
42+
43+ - name : Inject refresh token into onedrive config
44+ env :
45+ REFRESH_TOKEN_PERSONAL : ${{ secrets.REFRESH_TOKEN_PERSONAL }}
46+ run : |
47+ set -euo pipefail
48+ mkdir -p "$XDG_CONFIG_HOME/onedrive"
49+ umask 077
50+ printf "%s" "$REFRESH_TOKEN_PERSONAL" > "$XDG_CONFIG_HOME/onedrive/refresh_token"
51+ chmod 600 "$XDG_CONFIG_HOME/onedrive/refresh_token"
52+
53+ - name : Run E2E harness
54+ env :
55+ ONEDRIVE_BIN : ${{ github.workspace }}/.ci/prefix/bin/onedrive
56+ E2E_TARGET : personal
57+ RUN_ID : ${{ github.run_id }}
58+ run : |
59+ bash ci/e2e/run.sh
60+
61+ - name : Upload E2E artefacts
62+ if : always()
63+ uses : actions/upload-artifact@v4
64+ with :
65+ name : e2e-personal
66+ path : ci/e2e/out/**
You can’t perform that action at this time.
0 commit comments