Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reload/action-backstop
Action for running BackstopJS "our way"
https://github.com/reload/action-backstop
actions hacktoberfest
Last synced: about 2 months ago
JSON representation
Action for running BackstopJS "our way"
- Host: GitHub
- URL: https://github.com/reload/action-backstop
- Owner: reload
- Created: 2021-01-19T12:43:18.000Z (almost 4 years ago)
- Default Branch: v2
- Last Pushed: 2022-01-13T11:43:41.000Z (about 3 years ago)
- Last Synced: 2024-07-30T16:45:52.374Z (6 months ago)
- Topics: actions, hacktoberfest
- Language: Shell
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# action-backstop
Github Action for running BackstopJS and store the report on
backstore.TLDR; Have a `backstop.json` in the root of the project, and ensure
that the secrets `DAIS_PLATFORMSH_ID`, `DAIS_PLATFORMSH_KEY` and
`RELOAD_BACKSTORE_KEY` is properly set. The latter is automatically
set for repositories in the `reload` organization and the former is
documented in [Dais](RELOAD_BACKSTORE_KEY). Add the following
workflow to `.github/workflows/visual_test.yml`:``` yaml
on: pull_request
name: Visual regression test
jobs:visual_test:
name: BackstopJS visual test
if: '!github.event.deleted'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2- uses: reload/action-backstop@v2
with:
action: reference
github_token: ${{ github.token }}- uses: xendk/dais@main
with:
platform_id: ${{ secrets.DAIS_PLATFORMSH_ID }}
platform_key: ${{ secrets.DAIS_PLATFORMSH_KEY }}
files: backstop.json- uses: reload/action-backstop@v2
with:
github_token: ${{ github.token }}
backstore_key: ${{ secrets.RELOAD_BACKSTORE_KEY }}
```