-
Notifications
You must be signed in to change notification settings - Fork 39
68 lines (57 loc) · 2.24 KB
/
Copy pathwindows-e2e.yml
File metadata and controls
68 lines (57 loc) · 2.24 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
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
name: Windows E2E
# Scaffolds the `backend` template from a local registry (packed off this repo)
# and runs the real `npm run dev`/`sandbox`/`deploy` on Windows, exercising the
# client tooling (spawning, CDK synth, paths). Deployed logic runs in Lambda and
# is OS-independent, so behavioral suites stay on Linux. Scheduled + manual only.
on:
workflow_dispatch:
schedule:
- cron: '0 8 * * *'
- cron: '0 14 * * *'
concurrency:
group: windows-e2e-${{ github.ref }}
cancel-in-progress: true
permissions:
id-token: write
contents: read
jobs:
windows-e2e:
name: Windows E2E (dev + sandbox + deploy)
runs-on: windows-latest
timeout-minutes: 120
environment: publish
env:
# Unique per run so a cancelled run can't collide with the next.
BLOCKS_STACK_SUFFIX: w${{ github.run_number }}
E2E_FROM_EMAIL: ${{ secrets.E2E_FROM_EMAIL }}
# Canonical fixed CI e2e telemetry installation ID. Keep in sync with the
# POSIX equivalent (the `installation-id` default in
# .github/actions/seed-telemetry-id/action.yml).
BLOCKS_E2E_TELEMETRY_ID: '00000000-0000-0000-0000-000000000e2e'
steps:
- uses: actions/checkout@v5
with:
persist-credentials: false
- uses: actions/setup-node@v5
with:
node-version-file: '.nvmrc'
cache: npm
# Pin a fixed Blocks CLI telemetry installation ID for CI e2e runs so this
# traffic is consistent and identifiable (and can be excluded from product
# usage metrics).
- name: Seed fixed e2e telemetry installation ID
shell: pwsh
run: |
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.blocks\telemetry" | Out-Null
Set-Content -NoNewline -Path "$env:USERPROFILE\.blocks\telemetry\installation-id" -Value "$env:BLOCKS_E2E_TELEMETRY_ID"
- run: npm ci
- run: npm run build
- name: Pack to local registry
run: npm run publish:dry-run
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v6
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: us-east-1
- name: Scaffold template and run user commands
run: node scripts/ci/windows-template-e2e.mjs