Skip to content

Commit b66e15f

Browse files
authored
Create CI GitHub action
1 parent d96a8bd commit b66e15f

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI Shariff-Plus
2+
3+
on:
4+
push:
5+
branches: [ "develop" ]
6+
pull_request:
7+
branches: [ "develop" ]
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
npm:
15+
name: Install JS/CSS dependencies
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: latest
22+
cache: 'npm'
23+
- name: Run npm ci
24+
- run: npm ci
25+
26+
test:
27+
name: Check Javascript & CSS code style and run test
28+
runs-on: ubuntu-latest
29+
needs: [npm]
30+
steps:
31+
- uses: actions/checkout@v4
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: latest
35+
cache: 'npm'
36+
- name: Check code style and run test
37+
- run: npm run test
38+
39+
build:
40+
name: Build distribution
41+
runs-on: ubuntu-latest
42+
needs: [npm]
43+
steps:
44+
- uses: actions/checkout@v4
45+
uses: actions/setup-node@v4
46+
with:
47+
node-version: latest
48+
cache: 'npm'
49+
- name: Run build
50+
- run: npm run build

0 commit comments

Comments
 (0)