forked from 0LNetworkCommunity/explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 829 Bytes
/
ci-web-app.yml
File metadata and controls
41 lines (34 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CI-Web-App
on:
push:
branches:
- main
- build-test
pull_request:
branches:
- main
- build-test
jobs:
build-web-app:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v5
with:
node-version: '22'
- name: Clean up node_modules and package-lock
run: |
rm -rf web-app/node_modules
rm -f web-app/package-lock.json
- name: Install dependencies
run: npm install
working-directory: web-app
- name: Build project
run: npm run build
working-directory: web-app
# TODO: run tests for this app
#- name: Run tests
# run: npm test
# working-directory: web-app