Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
anttimaki committed Aug 27, 2024
1 parent 0305053 commit b281dc4
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,29 @@ jobs:
projectToken: ${{ secrets[matrix.projects.token] }}
workingDir: ${{ matrix.projects.dir }}
exitOnceUploaded: true

percy-visual-regression-test:
runs-on: ubuntu-latest
needs: ["test", "pre-commit"]
# strategy:
# matrix:
# projects: [
# { token: "PERCY_TOKEN" },
# ]
steps:
- uses: actions/checkout@v2
# TODO - name: Start backend server

- name: Start frontend server
run: yarn workspace @thunderstore/cyberstorm-remix run

- name: Wait for server to be ready
run: sleep 30 # Adjust timing based on your server's startup time

- name: Run Percy visual tests
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
run: npx percy exec -- npx percy snapshot http://localhost:3000

- name: Stop application servers
run: kill $(jobs -p) # Stops the server once tests are done

0 comments on commit b281dc4

Please sign in to comment.