Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding percy workflow #71

Merged
merged 2 commits into from
Feb 26, 2024
Merged
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
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 }}
Loading