-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 1.1 KB
/
Copy pathcloud-e2e.yml
File metadata and controls
40 lines (34 loc) · 1.1 KB
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
name: Cloud direct-upload E2E
on:
workflow_dispatch:
schedule:
- cron: '29 9 * * 1'
permissions:
contents: read
jobs:
direct-upload:
name: Deployed Cloud direct-upload smoke test
runs-on: ubuntu-latest
env:
ZENNOTES_CLOUD_E2E_BASE_URL: ${{ secrets.ZENNOTES_CLOUD_E2E_BASE_URL }}
ZENNOTES_CLOUD_E2E_TOKEN: ${{ secrets.ZENNOTES_CLOUD_E2E_TOKEN }}
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version: 22
- name: Check E2E configuration
id: config
shell: bash
run: |
if [[ -n "$ZENNOTES_CLOUD_E2E_BASE_URL" && -n "$ZENNOTES_CLOUD_E2E_TOKEN" ]]; then
echo "ready=true" >> "$GITHUB_OUTPUT"
else
echo "ready=false" >> "$GITHUB_OUTPUT"
echo "Cloud E2E secrets are not configured; skipping deployed smoke test."
fi
- name: Exercise API, object storage, completion, and manifest
if: steps.config.outputs.ready == 'true'
run: npm run e2e:cloud