Skip to content

Commit e4fed37

Browse files
committed
Split checks into parallel jobs
1 parent c156164 commit e4fed37

File tree

1 file changed

+39
-4
lines changed

1 file changed

+39
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ on:
77
- release*
88

99
jobs:
10-
tests:
11-
name: Lint, Test, Build
10+
typecheck:
11+
name: TypeScript
1212
runs-on: ubuntu-latest
1313
steps:
14-
- run: echo "🔎 Job triggered by ${{ github.event_name }} event on branch ${{ github.ref }} in repository ${{ github.repository }}."
1514
- name: Checkout
1615
uses: actions/checkout@v3
1716
- name: Setup Node.js
@@ -20,11 +19,47 @@ jobs:
2019
node-version: lts/*
2120
- name: Install dependencies
2221
run: npm install --legacy-peer-deps # TODO remove --legacy-peer-deps after https://github.com/patternfly/patternfly-react-seed/issues/134 is fixed
23-
- name: Check TypeScript types
22+
- name: Run tsc
2423
run: npm run type-check
24+
lint:
25+
name: ESLint
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v3
30+
- name: Setup Node.js
31+
uses: actions/setup-node@v3
32+
with:
33+
node-version: lts/*
34+
- name: Install dependencies
35+
run: npm install --legacy-peer-deps # TODO remove --legacy-peer-deps after https://github.com/patternfly/patternfly-react-seed/issues/134 is fixed
2536
- name: Run eslint
2637
run: npm run lint
38+
test:
39+
name: Test
40+
runs-on: ubuntu-latest
41+
steps:
42+
- name: Checkout
43+
uses: actions/checkout@v3
44+
- name: Setup Node.js
45+
uses: actions/setup-node@v3
46+
with:
47+
node-version: lts/*
48+
- name: Install dependencies
49+
run: npm install --legacy-peer-deps # TODO remove --legacy-peer-deps after https://github.com/patternfly/patternfly-react-seed/issues/134 is fixed
2750
- name: Run tests
2851
run: npm run test
52+
build:
53+
name: Build
54+
runs-on: ubuntu-latest
55+
steps:
56+
- name: Checkout
57+
uses: actions/checkout@v3
58+
- name: Setup Node.js
59+
uses: actions/setup-node@v3
60+
with:
61+
node-version: lts/*
62+
- name: Install dependencies
63+
run: npm install --legacy-peer-deps # TODO remove --legacy-peer-deps after https://github.com/patternfly/patternfly-react-seed/issues/134 is fixed
2964
- name: Attempt a build
3065
run: npm run build

0 commit comments

Comments
 (0)