-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
beca8c9
commit 81987da
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Build Master | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Use Node 18.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "18.x" | ||
cache: npm | ||
cache-dependency-path: app-ui/package-lock.json | ||
- name: Install dependencies | ||
run: npm install -D puppeteer karma-chrome-launcher --save-dev @babel/preset-typescript | ||
working-directory: app-ui | ||
- name: Build | ||
run: npm run build | ||
working-directory: app-ui | ||
- name: Test | ||
run: npm run test --no-watch --no-progress --browsers=ChromeHeadlessCI | ||
working-directory: app-ui | ||
|
||
cypress-run: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
# Install NPM dependencies, cache them correctly | ||
# and run all Cypress tests | ||
- name: Cypress run | ||
uses: cypress-io/github-action@v6 | ||
with: | ||
working-directory: app-ui | ||
build: npm run build | ||
start: npm start |