Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit f4c2ef7

Browse files
committed
ci: add github action for web and cms
1 parent d3b31ba commit f4c2ef7

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed

.github/workflows/verify-cms.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Verify CMS
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- development
8+
paths:
9+
- cms/**
10+
pull_request:
11+
branches:
12+
- main
13+
- development
14+
paths:
15+
- cms/**
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v2
24+
- name: Set up Node.js
25+
uses: actions/setup-node@v2
26+
with:
27+
node-version: '18'
28+
- name: Install cms dependencies
29+
run: cd cms && npm ci
30+
- name: Lint cms
31+
run: cd cms && npm run lint
32+
- name: Build cms
33+
run: cd cms && npm run build

.github/workflows/verify-web.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Verify Web
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- development
8+
paths:
9+
- web/**
10+
pull_request:
11+
branches:
12+
- main
13+
- development
14+
paths:
15+
- web/**
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v2
24+
- name: Set up Node.js
25+
uses: actions/setup-node@v2
26+
with:
27+
node-version: '18'
28+
- name: Install web dependencies
29+
run: cd web && npm ci
30+
- name: Lint web
31+
run: cd web && npm run lint
32+
- name: Build web
33+
run: cd web && npm run build

0 commit comments

Comments
 (0)