-
Notifications
You must be signed in to change notification settings - Fork 237
50 lines (42 loc) · 1.09 KB
/
verify.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
50
name: Verify
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Test
runs-on: ubuntu-latest
environment: verify
steps:
- name: Check if VITE_ANVIL_FORK_URL is set
run: |
if [ -z "${VITE_ANVIL_FORK_URL}" ]; then
echo "VITE_ANVIL_FORK_URL is NOT set."
else
echo "VITE_ANVIL_FORK_URL is set."
echo "First 5 characters: ${VITE_ANVIL_FORK_URL:0:10}"
fi
env:
VITE_ANVIL_FORK_URL: ${{ secrets.VITE_ANVIL_FORK_URL }}
- name: Checkout code
uses: actions/checkout@v3
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Set up node
uses: actions/setup-node@v3
with:
cache: pnpm
node-version: 18
- name: Install dependencies
run: pnpm install
- name: Run tests
run: pnpm test
env:
VITE_ANVIL_FORK_URL: ${{ secrets.VITE_ANVIL_FORK_URL }}
VITE_ANVIL_BLOCK_NUMBER: 17977054