feat: add contract bundle test #286
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: Playwright Tests | |
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
branches: [main, master] | |
jobs: | |
test-webui: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: LuisEnMarroquin/[email protected] | |
with: | |
SSHKEY: ${{ secrets.CC_GA }} # ----- BEGIN RSA PRIVATE KEY----- ... | |
- run: ssh -T [email protected] || true | |
- run: git submodule update --init --recursive | |
- name: Install pnpm | |
uses: pnpm/[email protected] | |
- name: Set node version to 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install | |
- name: build packages | |
run: pnpm run -r build | |
- name: Install Playwright Browsers | |
run: cd packages/webui && pnpm exec playwright install --with-deps | |
- name: Build fe | |
run: cd packages/webui && npm run build | |
- name: Run Playwright tests | |
run: cd packages/webui && pnpm exec playwright test | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report | |
path: packages/webui/playwright-report/ | |
retention-days: 30 | |
test-landapp: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: LuisEnMarroquin/[email protected] | |
with: | |
SSHKEY: ${{ secrets.CC_GA }} # ----- BEGIN RSA PRIVATE KEY----- ... | |
- run: ssh -T [email protected] || true | |
- run: git submodule update --init --recursive | |
- name: Install pnpm | |
uses: pnpm/[email protected] | |
- name: Set node version to 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install | |
- name: build packages | |
run: pnpm run -r build | |
- name: Install Playwright Browsers | |
run: cd packages/land_app && pnpm exec playwright install --with-deps | |
- name: Build fe | |
run: cd packages/land_app && npm run build | |
- name: Run Playwright tests | |
run: cd packages/land_app && pnpm exec playwright test | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report | |
path: packages/land_app/playwright-report/ | |
retention-days: 30 |