Skip to content

Commit 9357b04

Browse files
authored
Merge pull request #18 from OnoSendae/fix/basic/path-generator
Fix/basic/path generator
2 parents 4ab1514 + 7979ec3 commit 9357b04

47 files changed

Lines changed: 3823 additions & 15 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
pull_request:
7+
branches: [main, develop]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Setup pnpm
16+
uses: pnpm/action-setup@v2
17+
with:
18+
version: 10
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '20'
24+
cache: 'pnpm'
25+
26+
- name: Install dependencies
27+
run: pnpm install --frozen-lockfile
28+
29+
- name: Build CLI
30+
run: pnpm --filter vibe-devtools build
31+
32+
- name: Upload build artifacts
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: dist
36+
path: apps/cli/dist/
37+
retention-days: 7
38+

.github/workflows/stash-tests.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Stash Test Suite
2+
3+
on:
4+
push:
5+
branches: [ main, develop, 'feat/**' ]
6+
paths:
7+
- 'apps/cli/src/stash/**'
8+
- 'apps/cli/src/commands/stash.ts'
9+
- 'apps/cli/__tests__/**'
10+
- '.github/workflows/stash-tests.yml'
11+
pull_request:
12+
branches: [ main, develop ]
13+
paths:
14+
- 'apps/cli/src/stash/**'
15+
- 'apps/cli/src/commands/stash.ts'
16+
- 'apps/cli/__tests__/**'
17+
18+
jobs:
19+
test:
20+
runs-on: ${{ matrix.os }}
21+
22+
strategy:
23+
matrix:
24+
os: [ubuntu-latest, macos-latest]
25+
node-version: [18.x, 20.x, 22.x]
26+
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v4
30+
31+
- name: Setup Node.js ${{ matrix.node-version }}
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: ${{ matrix.node-version }}
35+
36+
- name: Install dependencies
37+
run: |
38+
cd apps/cli
39+
npm install
40+
41+
- name: Run Stash Tests
42+
run: |
43+
cd apps/cli
44+
bash __tests__/scripts/run-all-tests.sh
45+
env:
46+
CI: true
47+
48+
- name: Upload Test Results
49+
if: always()
50+
uses: actions/upload-artifact@v4
51+
with:
52+
name: test-results-${{ matrix.os }}-node${{ matrix.node-version }}
53+
path: apps/cli/test-reports/
54+
retention-days: 30
55+
56+
- name: Comment PR with Results
57+
if: github.event_name == 'pull_request' && always()
58+
uses: actions/github-script@v7
59+
with:
60+
script: |
61+
let comment = `## 🧪 Stash Test Results\n\n`;
62+
comment += `**OS**: ${{ matrix.os }}\n`;
63+
comment += `**Node**: ${{ matrix.node-version }}\n`;
64+
comment += `**Status**: ${{ job.status }}\n`;
65+
66+
github.rest.issues.createComment({
67+
issue_number: context.issue.number,
68+
owner: context.repo.owner,
69+
repo: context.repo.repo,
70+
body: comment
71+
});
72+

0 commit comments

Comments
 (0)