-
Notifications
You must be signed in to change notification settings - Fork 1
68 lines (57 loc) · 1.73 KB
/
ci-dev-ops.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: ci-dev-ops
defaults:
run:
working-directory: .
on:
workflow_dispatch:
push:
branches:
- "main*"
- "development*"
- "ops*"
paths:
- "packages/ops/**"
- "packages/contracts/**"
- "packages/api/**"
- ".github/workflows/ci-dev-ops.yml"
jobs:
deploy:
runs-on: ubuntu-latest
environment: ci
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install yarn
run: |
corepack prepare yarn@stable --activate
npm install -g yarn
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
- name: Install foundry-toolchain
uses: foundry-rs/[email protected]
with:
version: nightly
- name: Install Project Dependencies
run: yarn install
- name: Run Ops tests and clear vault data
run: |
yarn int-test
yarn op --clean-vault-table
working-directory: packages/ops
env:
ENVIRONMENT: ${{ vars.ENVIRONMENT }}
DEPLOYER_PRIVATE_KEY: ${{ secrets.DEVOPS_SEPOLIA_DEPLOYER_PRIVATE_KEY }}
ADMIN_PRIVATE_KEY: ${{ secrets.DEVOPS_SEPOLIA_ADMIN_PRIVATE_KEY }}
ALICE_PRIVATE_KEY: ${{ secrets.DEVOPS_SEPOLIA_ALICE_PRIVATE_KEY }}
BOB_PRIVATE_KEY: ${{ secrets.DEVOPS_SEPOLIA_BOB_PRIVATE_KEY }}
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}
SUPABASE_ANONYMOUS_KEY: ${{ vars.SUPABASE_ANONYMOUS_KEY }}
ADMIN_PASSWORD: NeverGuessThis
ALICE_PASSWORD: alice-1234
BOB_PASSWORD: bobword
- name: Cleanup Yarn Cache
if: always()
run: yarn cache clean