Skip to content

Commit

Permalink
ci fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sneh1999 committed Nov 18, 2024
1 parent 15f0703 commit 557ebf1
Showing 1 changed file with 47 additions and 5 deletions.
52 changes: 47 additions & 5 deletions .github/workflows/contract-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,16 @@ jobs:
- name: Install packages
run: yarn

- name: Build
- name: Prepare Environment Variables
run: |
cp .env.sample.goerli .env
set -a # Automatically export variables
source .env
set +a
forge test
export $(grep -v '^#' .env | xargs) # Load variables
for var in $(grep -v '^#' .env | cut -d= -f1); do
echo "$var=${!var}" >> $GITHUB_ENV
done
- name: Build
run: forge test
tests:
name: Contract tests
runs-on: ubuntu-8
Expand Down Expand Up @@ -69,6 +72,14 @@ jobs:
with:
version: nightly

- name: Prepare Environment Variables
run: |
cp .env.sample.goerli .env
export $(grep -v '^#' .env | xargs) # Load variables
for var in $(grep -v '^#' .env | cut -d= -f1); do
echo "$var=${!var}" >> $GITHUB_ENV
done
- name: Install dependencies
run: yarn install

Expand Down Expand Up @@ -128,6 +139,14 @@ jobs:
with:
version: nightly

- name: Prepare Environment Variables
run: |
cp .env.sample.goerli .env
export $(grep -v '^#' .env | xargs) # Load variables
for var in $(grep -v '^#' .env | cut -d= -f1); do
echo "$var=${!var}" >> $GITHUB_ENV
done
- uses: OffchainLabs/actions/run-nitro-test-node@test-node-args
with:
nitro-testnode-ref: deneb-integration
Expand Down Expand Up @@ -171,6 +190,14 @@ jobs:
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'

- name: Prepare Environment Variables
run: |
cp .env.sample.goerli .env
export $(grep -v '^#' .env | xargs) # Load variables
for var in $(grep -v '^#' .env | cut -d= -f1); do
echo "$var=${!var}" >> $GITHUB_ENV
done
- name: Install packages
run: yarn

Expand Down Expand Up @@ -202,6 +229,13 @@ jobs:
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'

- name: Prepare Environment Variables
run: |
cp .env.sample.goerli .env
export $(grep -v '^#' .env | xargs) # Load variables
for var in $(grep -v '^#' .env | cut -d= -f1); do
echo "$var=${!var}" >> $GITHUB_ENV
done
- name: Install packages
run: yarn

Expand Down Expand Up @@ -233,6 +267,14 @@ jobs:
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'

- name: Prepare Environment Variables
run: |
cp .env.sample.goerli .env
export $(grep -v '^#' .env | xargs) # Load variables
for var in $(grep -v '^#' .env | cut -d= -f1); do
echo "$var=${!var}" >> $GITHUB_ENV
done
- name: Install packages
run: yarn

Expand Down

0 comments on commit 557ebf1

Please sign in to comment.