Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI

on:
push:
branches: [main]
pull_request:

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run check
- run: npm run build
- run: npm test
- run: npm run smoke
- run: npm run package:smoke
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@
"lint": "eslint src --ext .ts",
"format": "prettier --write src",
"validate": "bash scripts/validate.sh",
"smoke": "npm run build && node dist/cli.js fixtures/mixed --detail --min-coverage 40",
"test": "vitest run --coverage",
"test:watch": "vitest",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm run build",
"release:check": "npm run check && npm test && npm run smoke && npm run package:smoke",
"package:smoke": "npm pack --dry-run",
"smoke": "npm run build && node dist/cli.js --help && node dist/cli.js fixtures --format text"
},
"keywords": [
"typescript",
Expand Down
3 changes: 1 addition & 2 deletions src/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ describe('CLI integration', () => {
});

it('scans current directory when no argument', () => {
// This should scan the project's own src files
const output = execSync(`cd /Users/roger/Developer/my-opensource/typegap && ${cli}`, { encoding: 'utf-8' });
const output = execSync(cli, { encoding: 'utf-8', cwd: process.cwd() });
expect(output).toContain('Coverage');
});

Expand Down
1 change: 1 addition & 0 deletions src/version.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const version = "0.1.0";
Loading