Skip to content

Commit 31262c0

Browse files
authored
Update chartlets-ci.yml with frontend workflow
1 parent 2b163d6 commit 31262c0

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/chartlets-ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,45 @@ jobs:
77
steps:
88
- name: git-checkout chartlets
99
uses: actions/checkout@v4
10+
1011
- name: Set up Micromamba
1112
uses: mamba-org/setup-micromamba@v1
1213
with:
1314
environment-file: chartlets.py/environment.yml
15+
1416
- name: Run unit tests
1517
shell: bash -l {0}
1618
run: |
1719
cd chartlets.py
1820
pytest
21+
22+
frontend_react-ts:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: git-checkout chartlets
26+
uses: actions/checkout@v4
27+
28+
- name: Set up Node.js
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: '18.x'
32+
33+
- name: Install dependencies
34+
run: |
35+
cd chartlets.js
36+
npm install
37+
38+
- name: Linter
39+
run: |
40+
cd chartlets.js
41+
npm run lint
42+
43+
- name: Run frontend tests
44+
run: |
45+
cd chartlets.js
46+
npm run test
47+
48+
- name: Build frontedn
49+
run: |
50+
cd chartlets.js
51+
npm run build

0 commit comments

Comments
 (0)