-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
469 additions
and
932 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
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 |
---|---|---|
|
@@ -204,9 +204,105 @@ jobs: | |
uses: './.github/actions/iota-sandbox/setup' | ||
|
||
- name: Run Wasm examples | ||
run: npm run test:examples | ||
run: npm run test:readme && npm run test:node | ||
working-directory: bindings/wasm | ||
|
||
- name: Tear down iota sandbox | ||
if: always() | ||
uses: './.github/actions/iota-sandbox/tear-down' | ||
|
||
test-wasm-firefox: | ||
needs: build-wasm | ||
if: ${{ needs.check-for-run-condition.outputs.should-run == 'true' }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
include: | ||
- os: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: Install JS dependencies | ||
run: npm ci | ||
working-directory: bindings/wasm | ||
|
||
- name: Download bindings/wasm artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: identity-wasm-bindings-build | ||
path: bindings/wasm | ||
|
||
- name: Start iota sandbox | ||
uses: './.github/actions/iota-sandbox/setup' | ||
|
||
- name: Build Docker image | ||
uses: docker/[email protected] | ||
with: | ||
context: bindings/wasm/ | ||
file: bindings/wasm/cypress/Dockerfile | ||
push: false | ||
tags: cypress-test:latest | ||
load: true | ||
|
||
- name: Run cypress | ||
run: docker run --network host cypress-test test:browser:firefox | ||
|
||
- name: Tear down iota sandbox | ||
if: always() | ||
uses: './.github/actions/iota-sandbox/tear-down' | ||
|
||
test-wasm-chrome: | ||
needs: build-wasm | ||
if: ${{ needs.check-for-run-condition.outputs.should-run == 'true' }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
include: | ||
- os: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: Install JS dependencies | ||
run: npm ci | ||
working-directory: bindings/wasm | ||
|
||
- name: Download bindings/wasm artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: identity-wasm-bindings-build | ||
path: bindings/wasm | ||
|
||
- name: Start iota sandbox | ||
uses: './.github/actions/iota-sandbox/setup' | ||
|
||
- name: Build Docker image | ||
uses: docker/[email protected] | ||
with: | ||
context: bindings/wasm/ | ||
file: bindings/wasm/cypress/Dockerfile | ||
push: false | ||
tags: cypress-test:latest | ||
load: true | ||
|
||
- name: Run cypress | ||
run: docker run --network host cypress-test test:browser:parallel:chrome | ||
|
||
- name: Tear down iota sandbox | ||
if: always() | ||
uses: './.github/actions/iota-sandbox/tear-down' |
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,2 @@ | ||
node_modules | ||
target |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM cypress/browsers:latest | ||
|
||
COPY ./ /e2e | ||
|
||
WORKDIR /e2e | ||
|
||
RUN npm ci | ||
|
||
RUN npm run build:examples:web | ||
|
||
ENTRYPOINT [ "npm", "run" ] |
Oops, something went wrong.