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/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build and Lint

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Copy link

Copilot AI Jun 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The checkout, setup-node, and install steps are duplicated across workflows. Consider extracting them into a reusable workflow or composite action to reduce repetition.

Copilot uses AI. Check for mistakes.
- uses: actions/setup-node@v4
with:
node-version: '22'
Copy link

Copilot AI Jun 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Node version '22' may not be supported on the hosted runner; consider using a published LTS like '18.x' or '20.x'.

Suggested change
node-version: '22'
node-version: '20'

Copilot uses AI. Check for mistakes.
cache: yarn
- name: Install dependencies
run: |
corepack enable
yarn install --immutable
- name: Prettier Check
run: yarn prettier --check .
- name: Build
run: yarn build
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Copy link

Copilot AI Jun 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The checkout, setup-node, and install steps are duplicated across workflows. Consider extracting them into a reusable workflow or composite action to reduce repetition.

Copilot uses AI. Check for mistakes.
- uses: actions/setup-node@v4
with:
node-version: '22'
Copy link

Copilot AI Jun 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Node version '22' may not be supported on the hosted runner; consider using a published LTS like '18.x' or '20.x'.

Suggested change
node-version: '22'
node-version: '20.x'

Copilot uses AI. Check for mistakes.
cache: yarn
- name: Install dependencies
run: |
corepack enable
yarn install --immutable
- name: Run tests
run: yarn vitest run --passWithNoTests
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
"typescript": "^5",
"vitest": "^1",
"tsx": "^4"
}
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
Loading