-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (46 loc) · 1.42 KB
/
check-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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