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
48 changes: 0 additions & 48 deletions .github/workflows/Semgrep.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/percy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# .github/workflows/percy.yml
name: Percy Visual Tests

on:
push:
branches:
- master # Your remote default branch is 'master'

pull_request:
branches:
- master # PRs targeting your 'master' branch

jobs:
visual-tests:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: npm install

# Add this new step to install Percy CLI globally
- name: Install Percy CLI
run: npm install -g @percy/cli

- name: Install latest Chromedriver (for Chrome)
run: npm install chromedriver@latest

- name: Run Percy Visual Tests
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
run: percy exec -- npm run test
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h1>todos</h1>
<a href="#/completed">Completed</a>
</li>
</ul>
<button class="clear-completed">Clear completed</button>
<button class="clear-completed" style="font-weight: bold; color: red; background-color: blueviolet;">CLEAR COMPLETED!!!</button>
</footer>
</section>
<footer class="info">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"author": "Perceptual Inc.",
"license": "MIT",
"scripts": {
"test": "percy exec -- node tests/test.js"
"test": "node tests/test.js"
},
"devDependencies": {
"@percy/cli": "^1.30.11",
Expand Down