Skip to content

Commit

Permalink
in browser unit test - setting up npm / nodejs to build and run
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulLinYao committed Aug 7, 2023
1 parent 743f416 commit ce2c42a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/tests-in-browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ env:
NETCORE_VERSION: "6.0.x"
# set this to the NODE JS version to use
NODEJS_VERSION: "14.17.3"
# set this to npm working directory
NPM_WORKING_DIRECTORY: 'frontend'

jobs:
build:
Expand All @@ -51,8 +53,11 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{env.NODEJS_VERSION}}
- run: npm install
- run: npm run build:staging --if-present
- name: Set up NPM and build our code
working-directory: ${{env.NPM_WORKING_DIRECTORY}}
run:
npm install
npm run build:staging --if-present
- name: Setup chrome driver
uses: browser-actions/setup-chrome@latest
- name: Run browser
Expand Down

0 comments on commit ce2c42a

Please sign in to comment.