Skip to content

Commit

Permalink
chore(ci): use .env.example for ci tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlc03 committed Aug 12, 2024
1 parent d71bb81 commit 837b937
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/contracts-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ jobs:
run: |
pnpm install --frozen-lockfile --prefer-offline
- name: Copy .env.example to .env
run: |
cp packages/interface/.env.example packages/interface/.env
- name: Build
run: |
pnpm run build
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/coordinator-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ env:
NEXT_PUBLIC_VOTING_END_DATE: ${{ vars.NEXT_PUBLIC_VOTING_END_DATE }}
NEXT_PUBLIC_RESULTS_DATE: ${{ vars.NEXT_PUBLIC_RESULTS_DATE }}
NEXT_PUBLIC_POLL_MODE: ${{ vars.NEXT_PUBLIC_POLL_MODE }}
TEST_MNEMONIC: ${{ secrets.TEST_MNEMONIC }}
WALLET_PRIVATE_KEY: ""

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down Expand Up @@ -78,6 +76,11 @@ jobs:
run: |
pnpm install --frozen-lockfile --prefer-offline
- name: Copy .env.example to .env
run: |
cp packages/coordinator/.env.example packages/coordinator/.env
cp packages/interface/.env.example packages/interface/.env
- name: Build
run: |
pnpm run build
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ on:
schedule:
- cron: "0 9 * * *" # run every day at 9:00 UTC

push:
branches: [main]
pull_request:

env:
NEXT_PUBLIC_CHAIN_NAME: ${{ vars.NEXT_PUBLIC_CHAIN_NAME }}
NEXT_PUBLIC_ADMIN_ADDRESS: ${{ vars.NEXT_PUBLIC_ADMIN_ADDRESS }}
Expand All @@ -33,8 +29,6 @@ env:
NEXT_PUBLIC_VOTING_END_DATE: ${{ vars.NEXT_PUBLIC_VOTING_END_DATE }}
NEXT_PUBLIC_RESULTS_DATE: ${{ vars.NEXT_PUBLIC_RESULTS_DATE }}
NEXT_PUBLIC_POLL_MODE: ${{ vars.NEXT_PUBLIC_POLL_MODE }}
TEST_MNEMONIC: ${{ secrets.TEST_MNEMONIC }}
WALLET_PRIVATE_KEY: ""

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -88,6 +82,10 @@ jobs:
pnpm run install:chromium
working-directory: packages/interface

- name: Copy .env.example to .env
run: cp .env.example .env
working-directory: packages/interface

- name: Build
run: pnpm run build
working-directory: packages/interface
Expand Down
2 changes: 0 additions & 2 deletions packages/coordinator/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,3 @@ SUBGRAPH_DEPLOY_KEY=

# Subgraph project folder
SUBGRAPH_FOLDER=./node_modules/maci-subgraph


8 changes: 4 additions & 4 deletions packages/interface/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ NEXT_PUBLIC_WALLETCONNECT_ID=
# -----------------

# Event title for the round, just for display
NEXT_PUBLIC_EVENT_NAME="ETH GLOBAL"
NEXT_PUBLIC_EVENT_NAME="MACI PLATFORM"

# Unique identifier for your applications and lists - your app will group attestations by this id
NEXT_PUBLIC_ROUND_ID="open-rpgf-1"
NEXT_PUBLIC_ROUND_ID="maci-platform-1"
# Event title for the round, just for display
NEXT_PUBLIC_ROUND_ORGANIZER="PSE"

Expand All @@ -45,7 +45,7 @@ NEXT_PUBLIC_FEEDBACK_URL=https://github.com/privacy-scaling-explorations/maci-pl

# address that will approve applications and voters
# (leaving empty means anyone can do this)
NEXT_PUBLIC_ADMIN_ADDRESS=
NEXT_PUBLIC_ADMIN_ADDRESS="0x0000000000000000000000000000000000000000"

# -----------------
# EAS CONFIGURATION
Expand Down Expand Up @@ -77,7 +77,7 @@ NEXT_PUBLIC_SEMAPHORE_SUBGRAPH=
# Do this if the schemas doesn't exist on the network you're using.
WALLET_PRIVATE_KEY=""

NEXT_PUBLIC_MACI_ADDRESS=
NEXT_PUBLIC_MACI_ADDRESS="0x0000000000000000000000000000000000000000"

NEXT_PUBLIC_MACI_START_BLOCK=

Expand Down

0 comments on commit 837b937

Please sign in to comment.