Skip to content

Commit 945296c

Browse files
committed
created CI job
1 parent d005c61 commit 945296c

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
- develop
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Cache node modules
17+
id: cache-npm
18+
uses: actions/cache@v3
19+
20+
env:
21+
cache-name: cache-node-modules
22+
with:
23+
# npm cache files are stored in `~/.npm` on Linux/macOS
24+
path: ~/.npm
25+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
26+
restore-keys: |
27+
${{ runner.os }}-build-${{ env.cache-name }}-
28+
${{ runner.os }}-build-
29+
${{ runner.os }}-
30+
31+
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
32+
name: List the state of node modules
33+
continue-on-error: true
34+
run: npm list
35+
36+
- name: NPM install
37+
run: npm install
38+
39+
- name: Build
40+
run: npm run build
41+
42+
- name: Lint & Format
43+
run: npm run lint

0 commit comments

Comments
 (0)