Skip to content

Commit 6ba2f98

Browse files
committed
build: run workflow in parallel
1 parent a895410 commit 6ba2f98

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

.github/workflows/tests.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# This is a basic workflow to help you get started with Actions
2-
31
name: Tests
42

53
# Controls when the workflow will run
@@ -15,20 +13,16 @@ on:
1513
env:
1614
NODE_OPTIONS: --max_old_space_size=16384
1715

18-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
16+
# This workflow contains two jobs called "test" and "build" and runs them in parallel
1917
jobs:
20-
# This workflow contains a single job called "build"
21-
build:
22-
# The type of runner that the job will run on
18+
test:
2319
runs-on: ubuntu-latest
2420

2521
strategy:
2622
matrix:
2723
node-version: [18.x]
2824

29-
# Steps represent a sequence of tasks that will be executed as part of the job
3025
steps:
31-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3226
- uses: actions/checkout@v3
3327
- name: Use Node.js ${{ matrix.node-version }}
3428
uses: actions/setup-node@v3
@@ -39,4 +33,20 @@ jobs:
3933
- run: npm run lint
4034
- run: sudo npx playwright install-deps
4135
- run: npm run test
36+
37+
build:
38+
runs-on: ubuntu-latest
39+
40+
strategy:
41+
matrix:
42+
node-version: [18.x]
43+
44+
steps:
45+
- uses: actions/checkout@v3
46+
- name: Use Node.js ${{ matrix.node-version }}
47+
uses: actions/setup-node@v3
48+
with:
49+
node-version: ${{ matrix.node-version }}
50+
cache: 'npm'
51+
- run: npm ci
4252
- run: npm run build:prod

0 commit comments

Comments
 (0)