Skip to content

Commit

Permalink
ci: Build the demo site as part of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
punchagan committed Mar 9, 2023
1 parent 9f8e1fe commit 20fb816
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,16 @@ jobs:
run: |
source $VENV
pytest
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'

- name: Build demo site
# We build the demo site, but don't update it. This is purely for CI
# purposes.
run: |
yarn
./scripts/update-demo.sh
3 changes: 3 additions & 0 deletions scripts/update-demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ pushd $(dirname $0)/..
rm -rf ./tests/public/
./node_modules/.bin/rollup --bundleConfigAsCjs -c rollup.config.js
poetry build
if [ ! -z "${GITHUB_ACTIONS}" ]; then
pip install dist/earworm*.whl
fi
earworm -c tests/sample-config.yml

# Commit and publish the site
Expand Down

0 comments on commit 20fb816

Please sign in to comment.