Skip to content

Commit bf1f172

Browse files
Split out Lint to its own job
1 parent 78465e2 commit bf1f172

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

files/.github/workflows/ci.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15-
test:
16-
name: "Tests"
15+
lint:
16+
name: "Lint"
1717
runs-on: ubuntu-latest
1818
timeout-minutes: 10
1919

@@ -28,6 +28,21 @@ jobs:
2828
run: <%= pnpm ? 'pnpm install --frozen-lockfile' : yarn ? 'yarn install --frozen-lockfile' : 'npm ci' %>
2929
- name: Lint
3030
run: <%= pnpm ? 'pnpm' : yarn ? 'yarn' : 'npm run' %> lint
31+
32+
test:
33+
name: "Tests"
34+
runs-on: ubuntu-latest
35+
timeout-minutes: 10
36+
37+
steps:
38+
- uses: actions/checkout@v4<% if (pnpm) { %>
39+
- uses: pnpm/action-setup@v4<% } %>
40+
- uses: actions/setup-node@v4
41+
with:
42+
node-version: 18
43+
cache: <%= pnpm ? 'pnpm' : yarn ? 'yarn' : 'npm' %>
44+
- name: Install Dependencies
45+
run: <%= pnpm ? 'pnpm install --frozen-lockfile' : yarn ? 'yarn install --frozen-lockfile' : 'npm ci' %>
3146
- name: Run Tests
3247
run: <%= pnpm ? 'pnpm' : yarn ? 'yarn' : 'npm run' %> test
3348

0 commit comments

Comments
 (0)