File tree Expand file tree Collapse file tree 3 files changed +87
-53
lines changed
Expand file tree Collapse file tree 3 files changed +87
-53
lines changed Original file line number Diff line number Diff line change 11name : CI
22
33on :
4- push :
5- branches :
6- - main
7- - master
8- pull_request :
9- branches :
10- - main
11- - master
4+ push :
5+ branches :
6+ - main
7+ - master
8+ pull_request :
9+ branches :
10+ - main
11+ - master
1212
1313jobs :
14- bun-tests :
15- name : bun test suite
16- runs-on : ubuntu-latest
17-
18- steps :
19- - name : Checkout code
20- uses : actions/checkout@v3
21-
22- - name : Cache bun
23- uses : actions/cache@v3
24- id : bun-cache
25- with :
26- path : ~/.bun/bin
27- key : bun-v1.3.3
28-
29- - name : Install Bun v1.3.3
30- if : steps.bun-cache.outputs.cache-hit != 'true'
31- run : |
32- curl -fsSL https://bun.sh/install | bash -s "bun-v1.2.16"
33- - name : Add bun to PATH
34- run : echo "$HOME/.bun/bin" >> $GITHUB_PATH
35-
36- - name : Verify Bun
37- run : bun --version
38-
39- - name : Install dependencies
40- run : bun install
41-
42- - name : Run tests
43- run : bun test
14+ linting :
15+ name : Biome linting and formatting
16+ runs-on : ubuntu-latest
17+
18+ steps :
19+ - name : Checkout code
20+ uses : actions/checkout@v3
21+
22+ - name : Cache bun
23+ uses : actions/cache@v3
24+ id : bun-cache
25+ with :
26+ path : ~/.bun/bin
27+ key : bun-v1.2.16
28+
29+ - name : Install Bun v1.2.16
30+ if : steps.bun-cache.outputs.cache-hit != 'true'
31+ run : |
32+ curl -fsSL https://bun.sh/install | bash -s "bun-v1.2.16"
33+
34+ - name : Add bun to PATH
35+ run : echo "$HOME/.bun/bin" >> $GITHUB_PATH
36+
37+ - name : Install dependencies
38+ run : bun install
39+
40+ - name : Run Biome checks
41+ run : bunx biome check
42+
43+ bun-tests :
44+ name : bun test suite
45+ runs-on : ubuntu-latest
46+
47+ steps :
48+ - name : Checkout code
49+ uses : actions/checkout@v3
50+
51+ - name : Cache bun
52+ uses : actions/cache@v3
53+ id : bun-cache
54+ with :
55+ path : ~/.bun/bin
56+ key : bun-v1.2.16
57+
58+ - name : Install Bun v1.2.16
59+ if : steps.bun-cache.outputs.cache-hit != 'true'
60+ run : |
61+ curl -fsSL https://bun.sh/install | bash -s "bun-v1.2.16"
62+ - name : Add bun to PATH
63+ run : echo "$HOME/.bun/bin" >> $GITHUB_PATH
64+
65+ - name : Verify Bun
66+ run : bun --version
67+
68+ - name : Install dependencies
69+ run : bun install
70+
71+ - name : Run tests
72+ run : bun test
Original file line number Diff line number Diff line change 3030 "formatter" : {
3131 "quoteStyle" : " double"
3232 }
33+ },
34+ "json" : {
35+ "formatter" : {
36+ "indentStyle" : " tab"
37+ }
3338 }
3439}
Original file line number Diff line number Diff line change 11{
2- "name" : " mini-react" ,
3- "module" : " index.ts" ,
4- "devDependencies" : {
5- "@biomejs/biome" : " 1.9.4" ,
6- "@happy-dom/global-registrator" : " ^17.5.6" ,
7- "@types/bun" : " latest"
8- },
9- "scripts" : {
10- "lint" : " biome check ." ,
11- "format" : " biome format --write ."
12- },
13- "peerDependencies" : {
14- "typescript" : " ^5.0.0"
15- },
16- "type" : " module"
2+ "name" : " mini-react" ,
3+ "module" : " index.ts" ,
4+ "devDependencies" : {
5+ "@biomejs/biome" : " 1.9.4" ,
6+ "@happy-dom/global-registrator" : " ^17.5.6" ,
7+ "@types/bun" : " latest"
8+ },
9+ "scripts" : {
10+ "lint" : " biome check ." ,
11+ "format" : " biome format --write ."
12+ },
13+ "peerDependencies" : {
14+ "typescript" : " ^5.0.0"
15+ },
16+ "type" : " module"
1717}
You can’t perform that action at this time.
0 commit comments