Repository navigation
68 lines (63 loc) · 2.13 KB
/
Copy pathcli-global-mode-smoke.yml
File metadata and controls
68 lines (63 loc) · 2.13 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
# Copyright (c) Meta Platforms, Inc. and affiliates.
# CLI global mode smoke test, started by hand. Packs the CLI and Core from the
# commit it runs on, installs the packed CLI for the computer with npm, and
# runs .github/scripts/cli-global-mode-smoke.mjs on macOS, Windows, and Linux.
# It covers the rows of AST-081's global and project table that depend on an
# operating system's own file system (G25, G26), which the in-repo tests check
# only for their path rules. It never runs on pull requests.
name: CLI Global Mode Smoke (manual)
on:
workflow_dispatch:
permissions: {}
jobs:
pack:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/setup
- name: Pack CLI and Core
run: |
mkdir -p "$RUNNER_TEMP/packs"
pnpm -F @astryxdesign/build build
pnpm -F @astryxdesign/core pack --pack-destination "$RUNNER_TEMP/packs"
pnpm -F @astryxdesign/cli pack --pack-destination "$RUNNER_TEMP/packs"
ls -la "$RUNNER_TEMP/packs"
- uses: actions/upload-artifact@v7
with:
name: packs
path: ${{ runner.temp }}/packs/*.tgz
if-no-files-found: error
smoke:
needs: pack
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 45
permissions:
contents: read
steps:
- uses: actions/checkout@v7
with:
sparse-checkout: |
.github/scripts/cli-global-mode-smoke.mjs
.nvmrc
sparse-checkout-cone-mode: false
- uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
- uses: actions/download-artifact@v8
with:
name: packs
path: packs
- name: Smoke test
run: node .github/scripts/cli-global-mode-smoke.mjs --packs packs --out results-${{ matrix.os }}.json
- uses: actions/upload-artifact@v7
if: always()
with:
name: results-${{ matrix.os }}
path: results-${{ matrix.os }}.json