Skip to content

Commit 6146674

Browse files
mihaiscalexcos20
andauthored
Manual bump test (#181)
* bump * ci possible fix * ci fix * ci fx * fix tests * test * more test * more test * test * t * remove console * test * test * add env * wait contracts * test * t * t * add sleep * bump lib again * bump eslint * Update Datatokens.test.ts * log result * test url * fix url * Update Datatokens.test.ts * Update tests.yml * url test * Update tests.yml * Update tests.yml * Update tests.yml * fix * fix * remove unused script * remove console logs * shorter wait time * remove logs from test Co-authored-by: Alex Coseru <[email protected]>
1 parent 7d4b113 commit 6146674

File tree

5 files changed

+45748
-18168
lines changed

5 files changed

+45748
-18168
lines changed

.github/workflows/ci.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,18 @@ jobs:
1616
- uses: actions/checkout@v2
1717

1818
- name: Setup Node.js
19-
uses: actions/setup-node@v1
19+
uses: actions/setup-node@v2
2020
with:
21-
node-version: '14'
21+
node-version: '16'
2222

2323
- name: Cache node modules
24-
uses: actions/cache@v1
24+
uses: actions/cache@v2
25+
env:
26+
cache-name: cache-node-modules
2527
with:
2628
path: ~/.npm
27-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
28-
restore-keys: ${{ runner.os }}-node-
29-
29+
key: ${{ runner.os }}-lint-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
30+
restore-keys: ${{ runner.os }}-lint-${{ env.cache-name }}-
3031
- run: npm ci
3132
- run: npm run lint
3233
# TODO: activate once this issue is solved:

.github/workflows/tests.yml

+22-14
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,29 @@ on:
1111
jobs:
1212
test:
1313
runs-on: ubuntu-latest
14-
14+
strategy:
15+
max-parallel: 1
1516
steps:
1617
- uses: actions/checkout@v2
1718

1819
- name: Setup Node.js
19-
uses: actions/setup-node@v1
20+
uses: actions/setup-node@v2
2021
with:
21-
node-version: '14'
22+
node-version: '16'
2223

2324
- name: Cache node modules
24-
uses: actions/cache@v1
25+
uses: actions/cache@v2
26+
env:
27+
cache-name: cache-node-modules
2528
with:
2629
path: ~/.npm
27-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
28-
restore-keys: ${{ runner.os }}-node-
29-
30+
key: ${{ runner.os }}-lint-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
31+
restore-keys: ${{ runner.os }}-lint-${{ env.cache-name }}-
32+
3033
- uses: actions/checkout@v2
3134
name: Checkout Barge
3235
with:
33-
repository: "oceanprotocol/barge"
36+
repository: 'oceanprotocol/barge'
3437
path: 'barge'
3538
- run: npm ci
3639
- name: Run Barge
@@ -39,18 +42,23 @@ jobs:
3942
ADDRESS_FILE: ${HOME}/.ocean/ocean-contracts/artifacts/address.json
4043
run: |
4144
bash -x start_ocean.sh --with-thegraph --no-dashboard 2>&1 > start_ocean.log &
42-
for i in $(seq 1 500); do
45+
for i in $(seq 1 1500); do
4346
sleep 5
4447
[ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" ] && break
4548
done
49+
cat "$HOME/.ocean/ocean-contracts/artifacts/address.json"
4650
- run: npm run bargesetup
4751
env:
4852
ADDRESS_FILE: /home/runner/.ocean/ocean-contracts/artifacts/address.json
49-
- run: npm run codegen
50-
- run: npm run build
51-
- run: npm run create:local-barge
52-
- run: npm run deploy:local-barge
53+
- name: create and deploy subgraph
54+
run: |
55+
npm run codegen
56+
npm run build
57+
npm run create:local-barge
58+
npm run deploy:local-barge
59+
sleep 20
60+
env:
61+
ADDRESS_FILE: /home/runner/.ocean/ocean-contracts/artifacts/address.json
5362
- run: npm run test-integration
5463
env:
5564
ADDRESS_FILE: /home/runner/.ocean/ocean-contracts/artifacts/address.json
56-

0 commit comments

Comments
 (0)