Skip to content

Commit 75e0a26

Browse files
committed
ci: build and types testing
1 parent 7d1f09a commit 75e0a26

File tree

3 files changed

+53
-1
lines changed

3 files changed

+53
-1
lines changed

.github/workflows/ci.yaml

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+
push:
5+
branches:
6+
- next
7+
paths-ignore:
8+
- ".github/**"
9+
- "examples/**"
10+
- "README.md"
11+
- "LICENSE"
12+
workflow_dispatch:
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
build-and-test:
20+
runs-on: ubuntu-latest
21+
timeout-minutes: 15
22+
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
29+
- name: Setup pnpm
30+
uses: pnpm/action-setup@v4
31+
with:
32+
run_install: false
33+
34+
- name: Setup Node.js
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: "latest"
38+
cache: "pnpm"
39+
40+
- name: Install Dependencies
41+
run: pnpm install --frozen-lockfile
42+
43+
- name: Check Types
44+
run: pnpm type:check
45+
46+
- name: Build
47+
run: pnpm build
48+
49+
- name: Check Package Types
50+
run: pnpm type:check:package

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/*
33

44
# Except
5+
!.github
56
!src
67
!README.md
78
!.prettierrc

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"build": "unbuild",
2424
"format": "prettier --write .",
2525
"format:check": "prettier --check .",
26-
"type:check": "tsc --noEmit"
26+
"type:check": "tsc --noEmit",
27+
"type:check:package": "pnpm dlx @arethetypeswrong/cli --profile node16 --pack ."
2728
},
2829
"keywords": [
2930
"valorant",

0 commit comments

Comments
 (0)