Skip to content

Commit 799ea4e

Browse files
ticket-1577 IMA Agent moved into it's own repository
1 parent 006bc42 commit 799ea4e

File tree

6 files changed

+293
-293
lines changed

6 files changed

+293
-293
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
version: 2
22
updates:
33
- package-ecosystem: npm
4-
directory: "/proxy"
5-
schedule:
6-
interval: "weekly"
7-
day: "saturday"
8-
allow:
9-
- dependency-type: "production"
4+
directory: "/proxy"
5+
schedule:
6+
interval: "weekly"
7+
day: "saturday"
8+
allow:
9+
- dependency-type: "production"

.github/workflows/cla.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
name: "cla"
22
on:
3-
issue_comment:
4-
types: [created]
5-
pull_request_target:
6-
types: [opened, closed, synchronize]
3+
issue_comment:
4+
types: [created]
5+
pull_request_target:
6+
types: [opened, closed, synchronize]
77

88
jobs:
9-
cla:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: "Get Team Members"
13-
id: team
14-
# github-script, v6.1.0
15-
uses: actions/github-script@7a5c598405937d486b0331594b5da2b14db670da
16-
with:
17-
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
18-
result-encoding: string
19-
script: |
20-
const members = await github.paginate(
21-
github.rest.orgs.listMembers,
22-
{ org: "skalenetwork" },
23-
);
24-
return members.map(m => m.login).join(",");
25-
- name: "CLA Assistant"
26-
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
27-
# Beta Release, v2.1.3-beta
28-
uses: cla-assistant/github-action@ba066dbae3769e2ce93ec8cfc4fdc51b9db628ba
29-
env:
30-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
PERSONAL_ACCESS_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
32-
with:
33-
path-to-signatures: 'signatures/version1/cla.json'
34-
path-to-document: 'https://skale.network/cla.txt'
35-
remote-organization-name: 'skalenetwork'
36-
remote-repository-name: cla-sigs
37-
allowlist: '${{ steps.team.outputs.result }},*[bot]'
9+
cla:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: "Get Team Members"
13+
id: team
14+
# github-script, v6.1.0
15+
uses: actions/github-script@7a5c598405937d486b0331594b5da2b14db670da
16+
with:
17+
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
18+
result-encoding: string
19+
script: |
20+
const members = await github.paginate(
21+
github.rest.orgs.listMembers,
22+
{ org: "skalenetwork" },
23+
);
24+
return members.map(m => m.login).join(",");
25+
- name: "CLA Assistant"
26+
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
27+
# Beta Release, v2.1.3-beta
28+
uses: cla-assistant/github-action@ba066dbae3769e2ce93ec8cfc4fdc51b9db628ba
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
PERSONAL_ACCESS_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
32+
with:
33+
path-to-signatures: 'signatures/version1/cla.json'
34+
path-to-document: 'https://skale.network/cla.txt'
35+
remote-organization-name: 'skalenetwork'
36+
remote-repository-name: cla-sigs
37+
allowlist: '${{ steps.team.outputs.result }},*[bot]'

.github/workflows/dependabot.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
version: 2
22
updates:
33
- package-ecosystem: npm
4-
directory: "/agent"
5-
schedule:
6-
interval: "weekly"
7-
day: "saturday"
8-
open-pull-requests-limit: 10
4+
directory: "/agent"
5+
schedule:
6+
interval: "weekly"
7+
day: "saturday"
8+
open-pull-requests-limit: 10
99
- package-ecosystem: npm
10-
directory: "/proxy"
11-
schedule:
12-
interval: "weekly"
13-
day: "saturday"
14-
allow:
15-
- dependency-type: "production"
10+
directory: "/proxy"
11+
schedule:
12+
interval: "weekly"
13+
day: "saturday"
14+
allow:
15+
- dependency-type: "production"
1616
- package-ecosystem: npm
17-
directory: "/npms/skale-ima"
18-
schedule:
19-
interval: "weekly"
20-
day: "saturday"
21-
open-pull-requests-limit: 10
17+
directory: "/npms/skale-ima"
18+
schedule:
19+
interval: "weekly"
20+
day: "saturday"
21+
open-pull-requests-limit: 10

.github/workflows/issue_check.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
name: Get linked issues
22
on:
3-
pull_request:
4-
types: [ edited, synchronize, opened, reopened ]
3+
pull_request:
4+
types: [ edited, synchronize, opened, reopened ]
55

66
jobs:
7-
check-linked-issues:
8-
name: Check if pull request has linked issues
9-
runs-on: ubuntu-latest
10-
steps:
11-
- name: Get issues
12-
id: get-issues
13-
uses: mondeja/pr-linked-issues-action@v2
14-
env:
15-
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
16-
- name: PR has not linked issues
17-
if: join(steps.get-issues.outputs.issues) == ''
18-
run:
19-
exit 1
7+
check-linked-issues:
8+
name: Check if pull request has linked issues
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Get issues
12+
id: get-issues
13+
uses: mondeja/pr-linked-issues-action@v2
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
16+
- name: PR has not linked issues
17+
if: join(steps.get-issues.outputs.issues) == ''
18+
run:
19+
exit 1

.github/workflows/main.yml

Lines changed: 78 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -168,83 +168,83 @@ jobs:
168168
pip install predeployed/dist/ima_predeployed-*.whl
169169
python predeployed/scripts/generate_abi.py > data/ima-$VERSION-predeployed-abi.json
170170
171-
test-integration:
172-
runs-on: ubuntu-latest
173-
174-
env:
175-
working-directory: ./test
176-
177-
steps:
178-
- uses: actions/checkout@v2
179-
180-
- name: Get yarn cache directory path
181-
id: yarn-cache-dir-path
182-
run: echo "::set-output name=dir::$(yarn cache dir)"
183-
184-
- uses: actions/cache@v2
185-
id: yarn-cache
186-
with:
187-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
188-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
189-
restore-keys: |
190-
${{ runner.os }}-yarn-
191-
192-
- uses: actions/cache@v2
193-
with:
194-
path: ~/.cache/pip
195-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
196-
restore-keys: |
197-
${{ runner.os }}-pip-
198-
199-
- name: Set up Node
200-
uses: actions/setup-node@v2
201-
with:
202-
node-version: '16'
203-
204-
- name: Set up Python
205-
uses: actions/setup-python@v2
206-
with:
207-
python-version: 3.8
208-
209-
- name: Get IMA contracts
210-
run: |
211-
git clone https://github.com/skalenetwork/IMA.git --recursive-submodules
212-
cd IMA
213-
yarn install
214-
cd ..
171+
test-integration:
172+
runs-on: ubuntu-latest
215173

216-
- name: Compile contracts
217-
working-directory: ./proxy
218-
run: |
219-
yarn install
220-
221-
- name: Install all NPMs
222-
run: |
223-
yarn install
224-
225-
- name: Start background ganache
226-
working-directory: ./proxy
227-
run: |
228-
npx ganache --miner.blockGasLimit 12000000 --logging.quiet --chain.allowUnlimitedContractSize --wallet.defaultBalance 2000000 --wallet.accountKeysPath ../test/accounts.json &
229-
230-
- name: Prepare test (PY part)
231-
working-directory: ${{env.working-directory}}
232-
run: |
233-
python3 ../scripts/config_from_accounts.py accounts.json config.json
234-
pip3 install -r requirements.txt
235-
236-
- name: Run test (PY part)
237-
working-directory: ${{env.working-directory}}
238-
run: |
239-
python3 test.py
240-
241-
- name: Prepare test (JS part)
242-
working-directory: ${{env.working-directory}}
243-
run: |
244-
yarn install
245-
246-
- name: Run test (JS part)
247-
working-directory: ${{env.working-directory}}
248-
run: |
249-
yarn test
174+
env:
175+
working-directory: ./test
176+
177+
steps:
178+
- uses: actions/checkout@v2
179+
180+
- name: Get yarn cache directory path
181+
id: yarn-cache-dir-path
182+
run: echo "::set-output name=dir::$(yarn cache dir)"
183+
184+
- uses: actions/cache@v2
185+
id: yarn-cache
186+
with:
187+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
188+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
189+
restore-keys: |
190+
${{ runner.os }}-yarn-
191+
192+
- uses: actions/cache@v2
193+
with:
194+
path: ~/.cache/pip
195+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
196+
restore-keys: |
197+
${{ runner.os }}-pip-
198+
199+
- name: Set up Node
200+
uses: actions/setup-node@v2
201+
with:
202+
node-version: '16'
203+
204+
- name: Set up Python
205+
uses: actions/setup-python@v2
206+
with:
207+
python-version: 3.8
208+
209+
- name: Get IMA contracts
210+
run: |
211+
git clone https://github.com/skalenetwork/IMA.git --recursive-submodules
212+
cd IMA
213+
yarn install
214+
cd ..
215+
216+
- name: Compile contracts
217+
working-directory: ./proxy
218+
run: |
219+
yarn install
220+
221+
- name: Install all NPMs
222+
run: |
223+
yarn install
224+
225+
- name: Start background ganache
226+
working-directory: ./proxy
227+
run: |
228+
npx ganache --miner.blockGasLimit 12000000 --logging.quiet --chain.allowUnlimitedContractSize --wallet.defaultBalance 2000000 --wallet.accountKeysPath ../test/accounts.json &
229+
230+
- name: Prepare test (PY part)
231+
working-directory: ${{env.working-directory}}
232+
run: |
233+
python3 ../scripts/config_from_accounts.py accounts.json config.json
234+
pip3 install -r requirements.txt
235+
236+
- name: Run test (PY part)
237+
working-directory: ${{env.working-directory}}
238+
run: |
239+
python3 test.py
240+
241+
- name: Prepare test (JS part)
242+
working-directory: ${{env.working-directory}}
243+
run: |
244+
yarn install
245+
246+
- name: Run test (JS part)
247+
working-directory: ${{env.working-directory}}
248+
run: |
249+
yarn test
250250

0 commit comments

Comments
 (0)