Skip to content

Commit 116fa06

Browse files
verify: install 0.1.2 from npm on every platform (temporary branch)
1 parent e5f7753 commit 116fa06

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

‎.github/workflows/verify-npm.yml‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Temporary: install the published release from npm on every platform and ask every CLI verb.
2+
# Runs on a push to a verify/* branch only; the branch is deleted when the results are in.
3+
name: verify-npm
4+
on:
5+
push:
6+
branches: ['verify/**']
7+
jobs:
8+
npm:
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: [macos-15, macos-15-intel, ubuntu-24.04, ubuntu-24.04-arm, windows-2025]
13+
runs-on: ${{ matrix.os }}
14+
timeout-minutes: 30
15+
steps:
16+
- uses: actions/checkout@v4
17+
with: { sparse-checkout: .github }
18+
- uses: actions/setup-node@v4
19+
with: { node-version: '22' }
20+
- name: install @axiomcode/code-graph@0.1.2 from npm, no Souffle
21+
shell: bash
22+
run: |
23+
set -euo pipefail
24+
command -v souffle && { echo "::error::souffle is on this runner"; exit 1; } || true
25+
npm i -g @axiomcode/code-graph@0.1.2 --no-audit --no-fund
26+
echo "version: $(axiomcode --version) arch: $(node -p process.arch)"
27+
[ "$(axiomcode --version)" = 0.1.2 ] || { echo "::error::installed version is not 0.1.2"; exit 1; }
28+
ls "$(npm root -g)/@axiomcode/code-graph/node_modules/@axiomcode/"
29+
- name: every CLI verb, five languages
30+
shell: bash
31+
run: |
32+
set -uo pipefail
33+
Q=.github/scripts/e2e-queries.sh
34+
pkg="$(npm root -g)/@axiomcode/code-graph/package.json"
35+
sed -i.bak "s#\"\$(dirname \"\$bin\")/../@axiomcode/code-graph/package.json\"#\"$pkg\"#" "$Q"
36+
bin="$(command -v axiomcode)"; fail=0
37+
for lang in java python typescript javascript csharp; do
38+
echo "::group::$lang"
39+
bash "$Q" "$bin" ".github/e2e/$lang" "$RUNNER_TEMP/work-$lang" || fail=1
40+
echo "::endgroup::"
41+
done
42+
exit $fail

0 commit comments

Comments
 (0)