Skip to content

Commit 76d54b2

Browse files
committed
chore: switch to pnpm, minimize deps & devDeps, fix deps through pnpm audit
Signed-off-by: tunnckoCore <[email protected]>
1 parent 0bf31f6 commit 76d54b2

File tree

5 files changed

+6195
-12579
lines changed

5 files changed

+6195
-12579
lines changed

.github/workflows/main.yml

Lines changed: 67 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,65 @@
1-
name: CI
1+
name: ci
2+
3+
# on:
4+
# push:
5+
# branches: [ master ]
6+
# pull_request:
7+
# branches: [ master ]
8+
9+
# jobs:
10+
# # lint:
11+
# # name: Lint
12+
# # runs-on: ubuntu-latest
13+
# # steps:
14+
# # - uses: actions/checkout@v4
15+
16+
# # - name: Set up Node.js
17+
# # uses: actions/setup-node@v4
18+
# # with:
19+
# # node-version: '20'
20+
# # cache: 'npm'
21+
22+
# # - name: Install dependencies
23+
# # run: npm install
24+
25+
# # - name: Run lint
26+
# # run: npm run lint
27+
28+
# test:
29+
# name: Test on ${{ matrix.os }}
30+
# runs-on: ${{ matrix.os }}
31+
# strategy:
32+
# fail-fast: false
33+
# matrix:
34+
# os: [ubuntu-latest, macos-latest]
35+
# node-version: ['lts/*']
36+
37+
# steps:
38+
# - uses: actions/checkout@v4
39+
40+
# - name: Set up Node.js ${{ matrix.node-version }}
41+
# uses: actions/setup-node@v4
42+
# with:
43+
# node-version: ${{ matrix.node-version }}
44+
# cache: 'npm'
45+
46+
# - name: Install dependencies
47+
# run: npm install
48+
49+
# - name: Run tests
50+
# run: npm test
251

352
on:
453
push:
5-
branches: [ master ]
54+
branches:
55+
- '*'
656
pull_request:
7-
branches: [ master ]
57+
branches:
58+
- '*'
859

960
jobs:
10-
# lint:
11-
# name: Lint
12-
# runs-on: ubuntu-latest
13-
# steps:
14-
# - uses: actions/checkout@v4
15-
16-
# - name: Set up Node.js
17-
# uses: actions/setup-node@v4
18-
# with:
19-
# node-version: '20'
20-
# cache: 'npm'
21-
22-
# - name: Install dependencies
23-
# run: npm install
24-
25-
# - name: Run lint
26-
# run: npm run lint
27-
28-
test:
29-
name: Test on ${{ matrix.os }}
61+
build-and-test:
62+
name: Test on ${{ matrix.os }} with Node.js ${{matrix.node-version}}
3063
runs-on: ${{ matrix.os }}
3164
strategy:
3265
fail-fast: false
@@ -35,16 +68,22 @@ jobs:
3568
node-version: ['lts/*']
3669

3770
steps:
38-
- uses: actions/checkout@v4
71+
- name: Checkout
72+
uses: actions/checkout@v4
73+
74+
- uses: pnpm/action-setup@v4
75+
name: Install pnpm
76+
with:
77+
run_install: false
3978

40-
- name: Set up Node.js ${{ matrix.node-version }}
79+
- name: Setup Node.js ${{ matrix.node-version }}
4180
uses: actions/setup-node@v4
4281
with:
4382
node-version: ${{ matrix.node-version }}
44-
cache: 'npm'
83+
cache: pnpm
4584

4685
- name: Install dependencies
47-
run: npm install
86+
run: pnpm install
4887

4988
- name: Run tests
50-
run: npm test
89+
run: pnpm test

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
!package.json
2020
!yarn.lock
21+
!pnpm-lock.yaml
2122

2223
!**/src
2324
!**/src/**
@@ -66,7 +67,6 @@ test/tmp
6667
# # Package managers lockfiles
6768
# package-lock.json
6869
# shrinkwrap.json
69-
# pnpm-lock.json
7070

7171
# # Logs
7272
# logs

0 commit comments

Comments
 (0)