Skip to content

Commit 553b04f

Browse files
committed
ci: added make commands in workflow and some minor changes
Signed-off-by: shinigami-777 <chattopadhyaytamaghna@gmail.com>
1 parent a1433cd commit 553b04f

3 files changed

Lines changed: 19 additions & 9 deletions

File tree

.github/workflows/node-checks.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ jobs:
2626
node-version: ${{ matrix.node-version }}
2727

2828
- name: Install Dependencies
29-
run: npm install
29+
run: make setup
3030

3131
- name: Lint Check
32-
run: npm run lint
32+
run: make lint
3333

3434
- name: Prettier Check
35-
run: npm run format:check
35+
run: make format-check
3636

3737
- name: Build Project
38-
run: npm run build
38+
run: make build
3939

4040
- name: Run Tests
41-
run: npm run test
41+
run: make run-tests
4242

4343
- name: Log Node.js Version
4444
run: echo "Tested on Node.js version ${{ matrix.node-version }}"

Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ include .github/build/Makefile.show-help.mk
22

33
.PHONY: setup build format-check format-fix lint
44

5-
## Install Sistent dependencies on your local machine.
5+
## Install Sistent dependencies on your local machine
66
setup:
77
npm install
88

9-
## Build Sistent components and packages on your local machine.
9+
## Build Sistent components and packages on your local machine
1010
build:
1111
npm run build
1212

13-
## Buid Sistent in watch mode.
13+
## Buid Sistent in watch mode
1414
build-watch:
1515
npm run build:watch
1616

@@ -22,10 +22,14 @@ format-check:
2222
format-fix:
2323
npm run format:write
2424

25-
## Run Eslint on your local machine.
25+
## Run Eslint on your local machine
2626
lint:
2727
npm run lint
2828

29+
## Run tests
30+
run-tests:
31+
npm run test
32+
2933
.PHONY: version-patch version-minor version-major
3034

3135
# Create a patch version of packages

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ To run Eslint:
7171
make lint
7272
```
7373

74+
To run tests:
75+
76+
```
77+
make run-tests
78+
```
79+
7480
To attach sistent to your project use:
7581

7682
```

0 commit comments

Comments
 (0)