Skip to content

Commit 6fae555

Browse files
committed
Add github workflows CI.
1 parent e9c74c5 commit 6fae555

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/cicd.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Continuous Integration
2+
3+
on:
4+
#triggers on every push and pull
5+
push:
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
name: Build project
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: "20.11.1"
21+
22+
- name: Install dependencies
23+
run: npm install
24+
25+
- name: Run lint with eslint
26+
run: npm run lint
27+
28+
- name: Run format check
29+
run: npm run format
30+
31+
- name: Check commit messages
32+
uses: wagoid/commitlint-github-action@v3
33+
with:
34+
configFile: commitlint.config.cjs

0 commit comments

Comments
 (0)