-
Notifications
You must be signed in to change notification settings - Fork 348
40 lines (37 loc) · 1.2 KB
/
pr_checks.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
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:
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
- run: sleep 30
- name: Wait for Vercel Preview URL with App Name
id: vercel_preview_url_by_name
uses: zentered/[email protected]
env:
VERCEL_TOKEN: ${{ secrets.UI_TEST_VERCEL_TOKEN }}
with:
vercel_app: ${{ secrets.UI_TEST_WALLET_V2_VERCEL_PROJECT_ID }}
vercel_team_id: ${{ secrets.VERCEL_TEAM_ID }}
- name: Get URL
run: echo "https://${{steps.vercel_preview_url_by_name.outputs.preview_url}}"