Skip to content

Commit

Permalink
Adds server API stub (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
reederc42 authored Dec 2, 2023
1 parent 176dfee commit 4deb7c7
Show file tree
Hide file tree
Showing 13 changed files with 318 additions and 270 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
Expand All @@ -20,12 +17,19 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '21.x'

- name: Install
run: npm install --omit=dev
working-directory: ./ui

- name: Lint
run: npm run lint
working-directory: ./ui

- name: Test
run: npm run test
working-directory: ./ui

- name: Build
run: npm run build
working-directory: ./ui
8 changes: 5 additions & 3 deletions images/ui/test.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ ARG CYPRESS_VERSION=

FROM cypress/factory:3.2.0

USER 1000:1000

WORKDIR /ci
COPY ./ui/package.json .
COPY ./ui/package-lock.json .
RUN npm install
COPY --chown=1000:1000 ./ui/package.json .
COPY --chown=1000:1000 ./ui/package-lock.json .
RUN npm install --verbose
3 changes: 2 additions & 1 deletion ui/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
dist/
node_modules/
node_modules
testdata/
src/config.json
cypress/downloads
cypress/screenshots
10 changes: 8 additions & 2 deletions ui/config.default.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"userExpiration": 300000,
"apiExpiration": 120000
"server": {
"apiBaseURL": "http://localhost:8080",
"authBaseURL": "http://localhost:8080"
},
"mock": {
"userExpiration": 300000,
"apiExpiration": 120000
}
}
Loading

0 comments on commit 4deb7c7

Please sign in to comment.