-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.02 KB
/
Copy pathci.yml
File metadata and controls
44 lines (36 loc) · 1.02 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
name: CI
on:
pull_request:
push:
workflow_dispatch:
jobs:
validate:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Run checks
run: npm run check -w strong-mode
- name: Build package
run: npm run build -w strong-mode
- name: Pack release artifact
working-directory: packages/strong-mode
run: npm pack
- name: Smoke test packed CLI
shell: bash
run: |
set -euo pipefail
tarball="$(find "${GITHUB_WORKSPACE}/packages/strong-mode" -maxdepth 1 -name '*.tgz' | head -n 1)"
mkdir -p /tmp/strong-mode-smoke
cd /tmp/strong-mode-smoke
npm init -y >/dev/null 2>&1
npm exec --yes --package="$tarball" strong-mode -- --dry-run --yes