Clear out vault data after running ops int-tests #29
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: 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 |