Skip to content

Commit 4effcf5

Browse files
committed
Combine lint and test workflows
1 parent 2ebf493 commit 4effcf5

File tree

2 files changed

+22
-35
lines changed

2 files changed

+22
-35
lines changed
Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test
1+
name: CI
22

33
on:
44
push:
@@ -7,10 +7,30 @@ on:
77
branches: [main]
88

99
env:
10-
# Output colored text
10+
# Always try to output colored text.
1111
FORCE_COLOR: 1
1212

1313
jobs:
14+
lint:
15+
name: Lint
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v5
20+
- name: Setup pnpm
21+
uses: pnpm/action-setup@v4
22+
with:
23+
version: latest
24+
run_install: false
25+
- name: Setup Node.js
26+
uses: actions/setup-node@v5
27+
with:
28+
node-version: lts/*
29+
cache: pnpm
30+
- name: Install dependencies
31+
run: pnpm install
32+
- name: Lint files
33+
run: pnpm lint
1434
test:
1535
name: Test on ${{ matrix.os }} using Node.js v${{ matrix.node }}
1636
continue-on-error: true

.github/workflows/lint.yml

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

0 commit comments

Comments
 (0)