Skip to content

Commit 9fc3a33

Browse files
authored
Merge pull request #64 from token-js/pate/combine-ci
fix: Combine ci processes
2 parents 006cc3b + 9e0bb25 commit 9fc3a33

File tree

4 files changed

+59
-71
lines changed

4 files changed

+59
-71
lines changed

.github/workflows/ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Ci
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
lint:
8+
runs-on: ubuntu-22.04
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Install pnpm
12+
uses: pnpm/action-setup@v4
13+
with:
14+
version: 9
15+
- name: Use Node.js 20
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
cache: 'pnpm'
20+
- name: Install dependencies
21+
run: pnpm install
22+
- name: Build
23+
run: pnpm build
24+
- name: Run ESLint
25+
run: pnpm lint:check
26+
docs:
27+
runs-on: ubuntu-22.04
28+
steps:
29+
- uses: actions/checkout@v4
30+
- name: Install pnpm
31+
uses: pnpm/action-setup@v4
32+
with:
33+
version: 9
34+
- name: Use Node.js 20
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: 20
38+
cache: 'pnpm'
39+
- name: Install dependencies
40+
run: pnpm install
41+
- name: Check Docs
42+
run: pnpm docs:check
43+
test:
44+
runs-on: ubuntu-22.04
45+
steps:
46+
- uses: actions/checkout@v4
47+
- name: Install pnpm
48+
uses: pnpm/action-setup@v4
49+
with:
50+
version: 9
51+
- name: Use Node.js 20
52+
uses: actions/setup-node@v4
53+
with:
54+
node-version: 20
55+
cache: 'pnpm'
56+
- name: Install dependencies
57+
run: pnpm install
58+
- name: Run Tests
59+
run: pnpm test

.github/workflows/docs.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)