Repository navigation
54 lines (50 loc) · 1.92 KB
/
Copy pathcloud-setup-cli.yml
File metadata and controls
54 lines (50 loc) · 1.92 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
name: Cloud setup CLI
on:
pull_request:
branches: [main]
paths:
- 'src/bin/**'
- 'src/views/tui/**'
- 'scripts/proof-cloud-setup-cli.mjs'
- 'test/configuration-credential-flow.test.ts'
- '.github/workflows/cloud-setup-cli.yml'
permissions:
contents: read
concurrency:
group: cloud-setup-cli-${{ github.ref }}
cancel-in-progress: true
jobs:
cli-proof:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 22.19.0
cache: pnpm
- name: Record exact source and toolchain
run: |
git rev-parse HEAD
node --version
pnpm --version
- name: Install exact repository dependencies
run: pnpm install --frozen-lockfile
- name: Build current CLI
run: pnpm build
- name: Exercise candidate setup and later submission
run: node scripts/proof-cloud-setup-cli.mjs dist/bin/braid.js
- name: Exercise 80-column setup
run: node scripts/proof-cloud-setup-cli.mjs dist/bin/braid.js --compact
- name: Identify and install current public CLI without publishing
if: always()
run: |
npm view @tangle-network/braid dist-tags --json
npm view @tangle-network/braid@latest version dist.integrity gitHead --json
npm install --prefix "$RUNNER_TEMP/braid-cloud-public" @tangle-network/braid@latest
- name: Probe current public CLI setup re-entry
if: always()
run: node scripts/proof-cloud-setup-cli.mjs "$RUNNER_TEMP/braid-cloud-public/node_modules/@tangle-network/braid/dist/bin/braid.js" --public-probe