Skip to content

feat(tests): run tests #5

feat(tests): run tests

feat(tests): run tests #5

Workflow file for this run

name: Checks
on:
pull_request:
branches:
- main
push:
branches:
- feat/tests
concurrency:
# Support push/pr as event types with different behaviors each:
# 1. push: queue up builds
# 2. pr: only allow one run per PR
group: ${{ github.workflow }}-${{ github.event.type }}${{ github.event.pull_request.number }}
# If there is already a workflow running for the same pull request, cancel it
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Wait for Vercel Preview URL with App Name
id: vercel_preview_url_by_name
uses: zentered/vercel-preview-url@v1.1.9
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
GITHUB_REF: 'main'
GITHUB_REPOSITORY: 'PatrickHeneise/vercel-preview-action-test'
with:
vercel_app: 'vercel-preview-action-test'
- name: Get URL
run:
echo "https://${{
steps.vercel_preview_url_by_name.outputs.preview_url}}"
ui_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: WalletConnect/web3modal
ref: V3
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Wait for Vercel Preview URL with App Name
id: vercel_preview_url_by_name
uses: zentered/vercel-preview-url@v1.1.9
env:
VERCEL_TOKEN: ${{ secrets.UI_TEST_VERCEL_TOKEN }}
with:
vercel_app: ${{ secrets.UI_TEST_WALLET_V2_VERCEL_PROJECT_ID }}
- name: Get URL
run: echo "https://${{steps.vercel_preview_url_by_name.outputs.preview_url}}"