Skip to content

Commit 3ce564d

Browse files
committed
Update configuration
1 parent d20329a commit 3ce564d

File tree

1 file changed

+7
-52
lines changed

1 file changed

+7
-52
lines changed

.github/workflows/pnpm-build.yml

Lines changed: 7 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
name: pnpm-build.yml
1+
name: PNPM Build Test
22

33
on:
4-
pull_request:
5-
branches: ["*"]
64
push:
75
branches: ["main"]
6+
pull_request:
7+
branches: ["*"]
88

99
jobs:
10-
lint:
10+
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Checkout
13+
- name: Checkout code
1414
uses: actions/checkout@v4
1515

1616
- name: Setup Node.js
@@ -26,50 +26,5 @@ jobs:
2626
- name: Install dependencies
2727
run: pnpm install
2828

29-
- name: Copy env
30-
run: cp .env.example .env
31-
32-
- name: Lint
33-
run: pnpm lint && pnpm lint:ws
34-
35-
format:
36-
runs-on: ubuntu-latest
37-
steps:
38-
- uses: actions/checkout@v4
39-
40-
- name: Setup Node.js
41-
uses: actions/setup-node@v3
42-
with:
43-
node-version: 20
44-
45-
- name: Install pnpm
46-
run: |
47-
npm install -g pnpm
48-
echo "$(npm bin -g)" >> $GITHUB_PATH
49-
50-
- name: Install dependencies
51-
run: pnpm install
52-
53-
- name: Format
54-
run: pnpm format
55-
56-
typecheck:
57-
runs-on: ubuntu-latest
58-
steps:
59-
- uses: actions/checkout@v4
60-
61-
- name: Setup Node.js
62-
uses: actions/setup-node@v3
63-
with:
64-
node-version: 20
65-
66-
- name: Install pnpm
67-
run: |
68-
npm install -g pnpm
69-
echo "$(npm bin -g)" >> $GITHUB_PATH
70-
71-
- name: Install dependencies
72-
run: pnpm install
73-
74-
- name: Typecheck
75-
run: pnpm typecheck
29+
- name: Run build
30+
run: pnpm build

0 commit comments

Comments
 (0)