Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into SDK-323-remove-lerna-json
- Loading branch information
Showing
22 changed files
with
4,350 additions
and
4,357 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Description | ||
|
||
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. | ||
|
||
Fixes # (issue) | ||
|
||
# How Has This Been Tested? | ||
|
||
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration. | ||
|
||
# Checklist: | ||
|
||
- [ ] My changes follow the guidelines in [CONTRIBUTING.md](https://github.com/dfinity/agent-js/blob/main/CONTRIBUTING.md). | ||
- [ ] The title of this PR complies with [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/). | ||
- [ ] I have edited the CHANGELOG accordingly. | ||
- [ ] I have made corresponding changes to the documentation. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: End to End | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- edited | ||
- synchronize | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04] | ||
ghc: ['8.8.4'] | ||
spec: | ||
- '0.16.1' | ||
node: | ||
- 16 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- run: npm install -g npm | ||
|
||
- run: npm install | ||
- run: npm run lint --workspaces --if-present | ||
|
||
# build monorepo incl. each subpackage | ||
- run: npm run build --workspaces --if-present | ||
|
||
- run: echo y | sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)" | ||
|
||
- name: running dfx | ||
id: dfx | ||
run: | | ||
dfx start --background | ||
- run: npm run e2e --workspaces --if-present | ||
env: | ||
CI: true | ||
REPLICA_PORT: 8000 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Mitm | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- edited | ||
- synchronize | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04] | ||
ghc: ['8.8.4'] | ||
spec: | ||
- '0.16.1' | ||
node: | ||
- 16 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- run: npm install -g npm | ||
|
||
- run: npm install | ||
|
||
# build monorepo incl. each subpackage | ||
- run: npm run build --workspaces --if-present | ||
|
||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.8' | ||
- run: pip3 install mitmproxy~=8.0.0 | ||
|
||
- run: echo y | sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)" | ||
|
||
- name: running dfx | ||
id: dfx | ||
run: | | ||
dfx start --background | ||
- name: Running mitmdump | ||
id: mitmdump | ||
run: | | ||
set -ex | ||
mitmdump -p 8888 --mode reverse:http://127.0.0.1:8000 \ | ||
--modify-headers '/~s/Transfer-Encoding/' \ | ||
--modify-body '/~s/Hello/Hullo' \ | ||
& | ||
sleep 5 | ||
- name: mitm e2e | ||
env: | ||
CI: true | ||
REPLICA_PORT: 8888 | ||
MITM: true | ||
run: npm run mitm --workspaces --if-present |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Unit tests | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- edited | ||
- synchronize | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04] | ||
ghc: ['8.8.4'] | ||
spec: | ||
- '0.16.1' | ||
node: | ||
- 12 | ||
- 14 | ||
- 16 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- run: npm install -g npm | ||
|
||
- run: npm install | ||
- run: npm run lint --workspaces --if-present | ||
|
||
# build monorepo incl. each subpackage | ||
- run: npm run build --workspaces --if-present | ||
|
||
# test monorepo incl. each subpackage | ||
- run: npm run test | ||
env: | ||
CI: true |
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
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
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
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
Oops, something went wrong.