Skip to content
This repository was archived by the owner on Jan 2, 2023. It is now read-only.

Commit 8c34990

Browse files
author
Bassem Dghaidi
committed
Update ci pipelines to split build and test jobs
1 parent e296acc commit 8c34990

1 file changed

Lines changed: 33 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,46 @@ on:
1010
branches: [ master ]
1111

1212
jobs:
13+
1314
build:
14-
name: 'Build & Test'
1515
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: npm install and build webpack
20+
run: |
21+
ls -lha
22+
npm install
23+
npm run build
24+
- uses: actions/upload-artifact@master
25+
with:
26+
name: webpack artifacts
27+
path: ${{ GITHUB_WORKSPACE }}
28+
29+
30+
test:
31+
needs: build
32+
runs-on: ubuntu-latest
33+
1634
strategy:
1735
matrix:
36+
os: [ubuntu-latest, windows-2016]
1837
node-version: [10.x, 12.x]
38+
1939
steps:
2040
- uses: actions/checkout@v2
41+
- uses: actions/download-artifact@master
42+
with:
43+
name: webpack artifacts
44+
path: public
2145
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v1
46+
uses: actions/steup-node@v1
2347
with:
2448
node-version: ${{ matrix.node-version }}
25-
- run: npm ci
26-
- run: npm run build --if-present
27-
- run: npm test
49+
- name: npm install and test
50+
run: |
51+
ls -lha
52+
npm install
53+
npm test
54+
env:
55+
CI: true

0 commit comments

Comments
 (0)