feat: add backstop js test #24
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Backstop test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| backstop-tests: | |
| name: Visual regression tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm install ci | |
| - name: Build documentation | |
| run: | | |
| pip install -e .[doc] | |
| tox -e doc-html | |
| - name: Serve documentation | |
| run: npx http-server -u -p 8000 ./doc/_build/html & | |
| - name: check if server is up | |
| run: curl -I http://localhost:8000 || true | |