Skip to content
Open
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
22 changes: 20 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,34 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17

- name: ⚙️ Setup Node.js for Percy CLI
uses: actions/setup-node@v4
with:
node-version: '20' # Use a recent stable version

- uses: actions/cache@v3
with:
path: ~/.npm
key: v1/${{ runner.os }}/java-8/${{ hashFiles('**/package-lock.json') }}
restore-keys: v1/${{ runner.os }}/java-8/
- run: make install
- run: make test

# 🚨 REMOVE line 24: run: make install

- name: 📸 Install CLI, Install Dependencies, and Run Tests with Percy
run: |
# 1. Install Java dependencies (if not done by setup-java caching)
make install

# 2. Install the Percy CLI
npm install --save-dev @percy/cli

# 3. Use npx to launch Percy server AND run the tests
npx percy exec -- make test
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# example-percy-java-selenium
Example app used by the [Percy Java Selenium tutorial](https://docs.percy.io/docs/java-selenium-testing-tutorial) demonstrating Percy's Java Selenium integration.

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ body {
font: 14px 'Helvetica Neue', Helvetica, Arial, sans-serif;
line-height: 1.4em;
background: #f5f5f5;
color: #111111;
color: #0000FF;
min-width: 230px;
max-width: 550px;
margin: 0 auto;
Expand Down