Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,36 +27,29 @@ jobs:
cd $GITHUB_WORKSPACE/weaver-ui
npm run publish:local

- name: "Install Chrome Drivers"
run: sudo apt-get install xvfb

- name: "Node Cache"
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-cache-node-${{ hashFiles('**/package.json', '**/package-lock.json') }}
key: ${{ runner.os }}-cache-node-${{ hashFiles('**/package.json') }}

- name: "Node Modules Cache"
uses: actions/cache@v3
with:
path: $GITHUB_WORKSPACE/repo/node_modules
key: ${{ runner.os }}-cache-node_modules-${{ hashFiles('**/package.json', '**/package-lock.json') }}

- name: "Maven Cache"
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-cache-maven-${{ hashFiles('**/pom.xml') }}
key: ${{ runner.os }}-cache-node_modules-${{ hashFiles('**/package.json') }}

- name: "Setup Node"
uses: actions/setup-node@v3
with:
node-version: 16

- name: "Setup Java"
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'adopt'
cache: 'maven'

- name: "Maven Test"
env:
Expand Down
4 changes: 3 additions & 1 deletion lighthouserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"collect": {
"numberOfRuns": 1,
"url": ["http://localhost:9000/"],
"startServerCommand": "mvn spring-boot:run"
"startServerCommand": "mvn spring-boot:run",
"startServerReadyPattern": "Started CapApplication",
"startServerReadyTimeout": 90000
},
"assert": {
"assertions": {
Expand Down
1 change: 0 additions & 1 deletion scripts/build-lighthouse-badges.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const https = require('https');
const fs = require('fs-extra');
const glob = require("glob");

const ghPagesPath = `src/main/resources/gh-pages`;
const lighthousePath = `src/main/resources/gh-pages/audit`;
const lighthouseAssetsPath = `${lighthousePath}/assets`;
const lighthouseCiPath = './.lighthouseci';
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/gh-pages/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
audit/
1 change: 0 additions & 1 deletion src/main/resources/gh-pages/audit/assets/accessibility.svg

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion src/main/resources/gh-pages/audit/assets/performance.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/main/resources/gh-pages/audit/assets/pwa.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/main/resources/gh-pages/audit/assets/seo.svg

This file was deleted.

Loading