Skip to content

Cloud direct-upload E2E #3

Cloud direct-upload E2E

Cloud direct-upload E2E #3

Workflow file for this run

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