-
Notifications
You must be signed in to change notification settings - Fork 8
66 lines (51 loc) · 1.61 KB
/
generated-drift.yml
File metadata and controls
66 lines (51 loc) · 1.61 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
name: Generated Drift
on:
pull_request:
paths:
- 'packages/core/**'
- 'packages/sdk/**'
- 'crates/alien-core/**'
- 'crates/alien-bindings/proto/**'
- 'client-sdks/platform/openapi.json'
- 'client-sdks/manager/openapi.json'
- 'package.json'
- 'pnpm-lock.yaml'
workflow_dispatch:
permissions:
contents: read
id-token: write
jobs:
drift:
if: false # temporarily disabled — speakeasy CLI not available in CI
runs-on: depot-ubuntu-24.04-arm-4
timeout-minutes: 60
env:
CARGO_INCREMENTAL: "0"
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10.11.0
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- uses: dtolnay/rust-toolchain@nightly
- uses: depot/setup-action@v1
- uses: mozilla-actions/sccache-action@v0.0.9
- name: Configure git credentials
run: git config --global url."https://x-access-token:${{ secrets.REPO_ACCESS_TOKEN }}@github.com/".insteadOf "https://github.com/"
- name: Install protoc
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install Speakeasy CLI
run: npm install -g speakeasy@latest
- name: Regenerate code
run: |
pnpm generate
pnpm generate:platform-api
pnpm generate:manager-api
- name: Assert no generated drift
run: git diff --exit-code