Merge branch 'main' into fix/update-for-agents #2242
Workflow file for this run
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: Testing | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Reclaim some disk space | |
run: docker system prune --all --volumes -f | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- uses: nevermined-io/[email protected] | |
with: | |
token: ${{ secrets.API_TOKEN_GITHUB }} | |
opengsn: 'true' | |
estuary: 'true' | |
node-version: 'latest' | |
contracts-version: 'latest' | |
- name: Install dependencies | |
run: | | |
yarn | |
- name: Run linters | |
run: yarn lint | |
- name: Check artifacts | |
run: | | |
nvm-tools copy-artifacts ./artifacts | |
nvm-tools copy-circuits ./circuits | |
ls -l artifacts | |
- name: Run integration tests | |
env: | |
SEED_WORDS: ${{ secrets.seedWords }} | |
INFURA_TOKEN: ${{ secrets.INFURA_TOKEN }} | |
IPFS_GATEWAY: https://ipfs.infura.io:5001 | |
IPFS_PROJECT_ID: ${{ secrets.IPFS_PROJECT_ID }} | |
IPFS_PROJECT_SECRET: ${{ secrets.IPFS_PROJECT_SECRET }} | |
LOG_LEVEL: 1 # If LOG_LEVEL is >1 it will print the logger.debug calls | |
run: yarn integration:all | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Reclaim some disk space | |
run: docker system prune --all --volumes -f | |
- uses: actions/checkout@v4 | |
- uses: actions/checkout@v4 | |
with: | |
repository: nevermined-io/contracts | |
ref: 'main' | |
path: contracts | |
token: ${{ secrets.API_TOKEN_GITHUB }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Deploy contracts | |
run: | | |
cd contracts | |
yarn | |
export TESTNET=true | |
export NETWORK=external | |
./scripts/build-circuit.sh | |
yarn deploy | |
mv artifacts .. | |
mv circuits .. | |
cd .. | |
rm -rf contracts | |
- name: Install dependencies | |
run: | | |
yarn | |
- name: Start ganache | |
env: | |
SEED_WORDS: ${{ secrets.seedWords }} | |
run: yarn ganache --server.port 18545 --chain.chainId 8998 --wallet.mnemonic "$SEED_WORDS" --detach | |
- name: Run unit tests | |
env: | |
ETH_PORT: 18545 | |
SEED_WORDS: ${{ secrets.seedWords }} | |
run: | | |
yarn test:all |