diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c6e5381..2a0cc64 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 }} diff --git a/README.md b/README.md index 92ce987..9f61ceb 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/src/main/resources/css/index.css b/src/main/resources/css/index.css index bf7410e..66ba243 100644 --- a/src/main/resources/css/index.css +++ b/src/main/resources/css/index.css @@ -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;