Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit 114989c

Browse files
authored
add ci for build and lint (#29)
1 parent 68c0993 commit 114989c

File tree

10 files changed

+259
-150
lines changed

10 files changed

+259
-150
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/ci-cli-build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: ci-cli-build
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
- ready_for_review
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v2
22+
with:
23+
node-version: "22"
24+
- name: Install dependencies
25+
run: npm install
26+
- name: Build Program
27+
run: npm run build
28+
- name: Run Hyp CLI
29+
run: ./bin/run.js

.github/workflows/ci-cli-lint.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: ci-cli-lint
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- synchronize
7+
- reopened
8+
- ready_for_review
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: "22"
19+
- name: Install dependencies
20+
run: npm install
21+
- name: Lint Program
22+
run: npm run lint

bin/dev.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env -S node --loader ts-node/esm --no-warnings --disable-warning=ExperimentalWarning
22

3-
// eslint-disable-next-line n/shebang
43
import {execute} from '@oclif/core'
54

65
await execute({development: true, dir: import.meta.url})

eslint.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// @ts-check
2+
3+
import eslint from "@eslint/js";
4+
import tseslint from "typescript-eslint";
5+
6+
export default tseslint.config({
7+
extends: [eslint.configs.recommended, ...tseslint.configs.recommended],
8+
files: ["**/*.ts"],
9+
10+
ignores: ["**/node_modules/**", "**/dist/**"],
11+
rules: {
12+
"no-undef": "off",
13+
"@typescript-eslint/no-explicit-any": "off",
14+
},
15+
});

0 commit comments

Comments
 (0)