Adapting to SDKv2 #289
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: | |
branches: [main, develop] | |
pull_request: | |
branches: [main, develop] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: | | |
yarn | |
- name: Run linters | |
run: yarn lint | |
- name: Build | |
run: | | |
yarn build | |
yarn start --help | |
- uses: nevermined-io/[email protected] | |
with: | |
token: ${{ secrets.API_TOKEN_GITHUB }} | |
opengsn: 'true' | |
estuary: 'true' | |
contracts-version: 'v3.5.2' | |
node-version: 'develop' | |
- name: Check artifacts and circuits | |
run: | | |
nvm-tools copy-artifacts /tmp/.nevermined/artifacts | |
ls -l /tmp/.nevermined/artifacts/ready | |
nvm-tools copy-circuits /tmp/.nevermined/circuits | |
ls -l /tmp/.nevermined/circuits/keytransfer.wasm | |
- name: Run integration tests | |
env: | |
LOCAL_CONF_DIR: '/tmp/.nevermined' | |
SEED_WORDS: ${{ secrets.TEST_MNEMONIC }} | |
TOKEN_ADDRESS: '0x0000000000000000000000000000000000000000' | |
WEB3_PROVIDER_URL: 'http://contracts.nevermined.localnet' | |
NETWORK: 'geth-localnet' | |
IPFS_PROJECT_ID: ${{ secrets.IPFS_PROJECT_ID }} | |
IPFS_PROJECT_SECRET: ${{ secrets.IPFS_PROJECT_SECRET }} | |
NO_GRAPH: 'true' | |
run: | | |
yarn test:integration | |
- name: Upload logs | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: nevermined-tools-output | |
path: tools/nevermined_tools.txt |