Skip to content

Commit 7289d29

Browse files
authored
Merge pull request #790 from Abdel-Monaam-Aouini/enhance-workflow
feat: enhance workflow PR & master
2 parents 842276d + 329c216 commit 7289d29

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/node.js.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,38 @@ name: Node.js CI
22

33
on:
44
push:
5+
branches:
6+
- master
57
pull_request:
8+
types: [opened, synchronize, reopened, ready_for_review]
9+
branches:
10+
- '**'
611

712
jobs:
813
build:
914
runs-on: ubuntu-latest
1015
strategy:
1116
matrix:
12-
node-version: [14.x, 16.x]
17+
node-version: [14.x, 16.x, 18.x]
1318
steps:
1419
- uses: actions/checkout@v3
1520
- name: Use Node.js ${{ matrix.node-version }}
1621
uses: actions/setup-node@v3
1722
with:
1823
cache: yarn
1924
node-version: ${{ matrix.node-version }}
20-
- run: yarn install
21-
- run: yarn build
22-
- run: yarn coverage
25+
- name: Install dependencies
26+
run: yarn install
27+
- name: Prettier
28+
run: yarn prettify
29+
- name : Tests
30+
run: |
31+
yarn test:cli
32+
yarn test
33+
- name: Build
34+
run: yarn build
35+
- name: Coverage
36+
run: yarn coverage
2337
- uses: codecov/codecov-action@v3
2438
with:
2539
name: node-${{ matrix.node-version }}

0 commit comments

Comments
 (0)