Skip to content

Commit

Permalink
Adding percy workflow (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
sree-cfa authored Feb 26, 2024
1 parent 44cfd31 commit 562d3fd
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/run-percy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Run Percy visual diff testing

on:
workflow_dispatch:
inputs: { }

jobs:
percy:
name: Run Percy
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_USER: il-gcc-test
POSTGRES_PASSWORD: postgres
POSTGRES_DB: il-gcc-test
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- name: Set up ChromeDriver
uses: nanasess/[email protected]
- name: Set up JDK
uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: '17'
cache: 'gradle'
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Install percy from npm
run: npm install -g @percy/cli
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run journey test and send to Percy
run: npx percy exec -- ./gradlew test --tests org.ilgcc.app.journeys.GccFlowJourneyTest.fullGccFlow
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}

0 comments on commit 562d3fd

Please sign in to comment.