-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Issue 441] Fix lighthouse CI and update GitHub workflow (#451)
* Fix lighthouse CI and update workflow * Use startServerReadyPattern * Add missing gh-pages index.html * Add startServerReadyTimeout to have clean log
- Loading branch information
William Welling
authored
Sep 23, 2022
1 parent
296a238
commit 3c12c07
Showing
7 changed files
with
71 additions
and
23 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 |
---|---|---|
|
@@ -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: | ||
|
@@ -78,19 +71,19 @@ jobs: | |
path-to-file: 'repo/coveralls.json' | ||
coverage-format: raw | ||
|
||
# - name: "Lighthouse Report" | ||
# env: | ||
# LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} | ||
# run: | | ||
# cd $GITHUB_WORKSPACE/repo | ||
# xvfb-run --auto-servernum npm run test:audit | ||
- name: "Lighthouse Report" | ||
env: | ||
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} | ||
run: | | ||
cd $GITHUB_WORKSPACE/repo | ||
xvfb-run --auto-servernum npm run test:audit | ||
- name: "Deploy GH-Pages" | ||
if: github.ref == 'refs/heads/main' && github.event_name == 'push' | ||
uses: JamesIves/[email protected] | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
branch: gh-pages | ||
folder: repo/target/generated-docs | ||
folder: repo/target/gh-pages | ||
clean: true | ||
single_commit: true |
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
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
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
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 @@ | ||
audit/ |
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,38 @@ | ||
<!doctype html> | ||
<html lang="en" class="no-js"> | ||
|
||
<head> | ||
|
||
<base th:href="${ base + '/'}" /> | ||
|
||
<title>Sage :: Solr Aggregation Engine</title> | ||
|
||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
|
||
<meta name="description" content="Fedora User Interface" /> | ||
|
||
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous"> | ||
|
||
<link rel="stylesheet" th:href="${@environment.getProperty('app.url')+'/wro/app.css'}" /> | ||
|
||
</head> | ||
|
||
<body> | ||
<main> | ||
<tl-header page-title="SAGE Documentation"></tl-header> | ||
<div class="jumbotron jumbotron-fluid"> | ||
<div class="container"> | ||
<h1 class="display-4">SAGE</h1> | ||
<p class="lead">Choose your option: | ||
<a class="btn btn-primary ml-2" href="/SAGE/audit/">Audit</a> | ||
<a class="btn btn-success ml-2" href="/SAGE/api-docs/">Api Docs</a> | ||
</p> | ||
</div> | ||
</div> | ||
</main> | ||
<tl-footer></tl-footer> | ||
<script src="https://api.library.tamu.edu/tl-components/latest/tl-components.js"></script> | ||
</body> | ||
</html> |
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