Skip to content

Commit 470024b

Browse files
authored
Merge pull request #7 from tokenhost/feat/ci-security
CI: Node 20 + pnpm test; isolate legacy template from workspace
2 parents d3e2d3b + cd44c2a commit 470024b

4 files changed

Lines changed: 84 additions & 5478 deletions

File tree

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
updates:
3+
# Keep updates focused on the spec-aligned pnpm workspace. The legacy
4+
# `tokenhost-web-template/` directory is intentionally not included.
5+
- package-ecosystem: "npm"
6+
directory: "/"
7+
schedule:
8+
interval: "weekly"
9+
open-pull-requests-limit: 5
10+
11+
- package-ecosystem: "github-actions"
12+
directory: "/"
13+
schedule:
14+
interval: "weekly"
15+
open-pull-requests-limit: 5
16+

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 20
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: "20"
21+
22+
- name: Setup pnpm
23+
uses: pnpm/action-setup@v4
24+
with:
25+
version: "10.12.1"
26+
27+
- name: Get pnpm store dir
28+
id: pnpm-store
29+
run: echo "store_path=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"
30+
31+
- name: Cache pnpm store
32+
uses: actions/cache@v4
33+
with:
34+
path: ${{ steps.pnpm-store.outputs.store_path }}
35+
key: pnpm-store-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
36+
restore-keys: |
37+
pnpm-store-${{ runner.os }}-
38+
39+
- name: Install
40+
run: pnpm install --frozen-lockfile
41+
42+
- name: Test
43+
run: pnpm test
44+
45+
- name: Typecheck
46+
run: pnpm typecheck
47+
48+
- name: Audit (non-blocking)
49+
continue-on-error: true
50+
run: pnpm audit --audit-level high

0 commit comments

Comments
 (0)