Lower refresh interval to 5 seconds #87
This file contains 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: check-pr | |
on: | |
pull_request: | |
jobs: | |
build-wle-project: | |
runs-on: ubuntu-latest | |
container: | |
image: wonderlandengine/editor:latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- run: | | |
npm install -g yarn | |
cd wonderland | |
yarn && yarn build | |
cp dist/zesty-wonderland-sdk.js ../tests/wonderland/js/ | |
- name: Build WLE Project | |
run: /usr/local/bin/entrypoint.sh WonderlandEditor --windowless --package --project tests/wonderland/wonderland-test.wlp --output tests/wonderland/deploy/ --credentials $WLE_CREDENTIALS | |
env: | |
WLE_CREDENTIALS: ${{ secrets.WLE_CREDENTIALS }} | |
- name: Upload WLE build artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: wle-build-artifacts | |
path: tests/wonderland/deploy/ | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- run: | | |
chmod +x scripts/build.sh | |
chmod +x scripts/deploy.sh | |
scripts/build.sh | |
- name: Download WLE build artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
name: wle-build-artifacts | |
path: tests/wonderland/deploy/ | |
- name: Install dependencies | |
run: | | |
npx playwright install-deps | |
npx playwright install | |
- name: Run tests | |
run: yarn run test | |
needs: build-wle-project |