diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 21338101f..38ada92d6 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -35,13 +35,17 @@ jobs: # 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)" + - uses: dfinity/setup-dfx@main - name: running dfx id: dfx run: | dfx start --background + - name: setup + id: setup + run: npm run setup --workspaces --if-present + - run: npm run e2e --workspaces --if-present env: CI: true diff --git a/.github/workflows/mitm.yml b/.github/workflows/mitm.yml index d2fa2d52b..d6ddae76d 100644 --- a/.github/workflows/mitm.yml +++ b/.github/workflows/mitm.yml @@ -7,6 +7,7 @@ on: - reopened - edited - synchronize + workflow_dispatch: jobs: test: @@ -37,10 +38,10 @@ jobs: - uses: actions/setup-python@v2 with: - python-version: '3.8' - - run: pip3 install mitmproxy~=8.0.0 + python-version: '3.11' + - run: pip3 install mitmproxy~=10.0.0 - - run: echo y | sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)" + - uses: dfinity/setup-dfx@main - name: running dfx id: dfx @@ -51,17 +52,15 @@ jobs: id: mitmdump run: | set -ex - mitmdump -p 8888 --mode reverse:http://127.0.0.1:4943 \ + mitmdump -p 8888 --mode reverse:https://icp-api.io \ --modify-headers '/~s/Transfer-Encoding/' \ --modify-body '/~s/Hello/Hullo' \ & - sleep 5 + sleep 20 - name: mitm e2e env: CI: true - REPLICA_PORT: 8888 - MITM: true run: npm run mitm --workspaces --if-present aggregate: diff --git a/demos/sample-javascript/README.md b/demos/sample-javascript/README.md index 5b3647013..59a063859 100644 --- a/demos/sample-javascript/README.md +++ b/demos/sample-javascript/README.md @@ -6,4 +6,4 @@ 1. Ensure all dependencies are installed: `npm install` 2. Run the development server `npm run develop` -3. Visit the running site at http://localhost:8080 +3. Visit the running site at http://127.0.0.1:8080 diff --git a/demos/sample-javascript/package.json b/demos/sample-javascript/package.json index b6a5b0911..78776d9a6 100644 --- a/demos/sample-javascript/package.json +++ b/demos/sample-javascript/package.json @@ -12,7 +12,6 @@ }, "dependencies": { "@dfinity/agent": "^0.19.3", - "@dfinity/authentication": "^0.14.1", "@dfinity/identity": "^0.19.3", "@dfinity/principal": "^0.19.3" }, diff --git a/docs/generated/changelog.html b/docs/generated/changelog.html index 0581bc387..35e9de864 100644 --- a/docs/generated/changelog.html +++ b/docs/generated/changelog.html @@ -12,6 +12,11 @@

Agent-JS Changelog

Version x.x.x