Skip to content

Commit 4d08f06

Browse files
authored
Merge pull request #5 from DataScience-GT/rework/idea
Rework/idea
2 parents e385f58 + 82e9248 commit 4d08f06

File tree

1 file changed

+56
-13
lines changed

1 file changed

+56
-13
lines changed

.github/workflows/pnpm-build.yml

Lines changed: 56 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,75 @@
1-
name: PNPM Build Test
1+
name: pnpm-build.yml
22

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

99
jobs:
10-
build:
10+
lint:
1111
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 20
20+
21+
- name: Install pnpm
22+
run: |
23+
npm install -g pnpm
24+
echo "$(npm bin -g)" >> $GITHUB_PATH
25+
26+
- name: Install dependencies
27+
run: pnpm install
28+
29+
- name: Copy env
30+
run: cp .env.example .env
31+
32+
- name: Lint
33+
run: pnpm lint && pnpm lint:ws
1234

35+
format:
36+
runs-on: ubuntu-latest
1337
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v3
38+
- uses: actions/checkout@v4
1639

1740
- name: Setup Node.js
1841
uses: actions/setup-node@v3
1942
with:
2043
node-version: 20
21-
cache: 'pnpm'
2244

23-
- name: Setup PNPM
24-
uses: pnpm/action-setup@v2
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
2563
with:
26-
version: 8
64+
node-version: 20
65+
66+
- name: Install pnpm
67+
run: |
68+
npm install -g pnpm
69+
echo "$(npm bin -g)" >> $GITHUB_PATH
2770
2871
- name: Install dependencies
2972
run: pnpm install
3073

31-
- name: Run build
32-
run: pnpm build
74+
- name: Typecheck
75+
run: pnpm typecheck

0 commit comments

Comments
 (0)