-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* start e2e part * Change integration tests to get env key for ci/cd * Modify tests to use either NCTL or casper-node-launcher-js for CI/CD * Fix loading of demo app in dev mode, build proxy for casper-node-laucnher-js * test ci/cd * Remove unsued dep * cargo audit * audit pass * audit fail casper-client vergen * clippy * ci/cd tests * test integration tests * install make ? * build ci * bad syntax * test * tests * test * syntax * pack * test e2e * typo * e2e-test * keep app live * rmove nx-cloud * test test * dsiable test for now * test tests * test e2e * Update angular && Build app * Update angular * test docs * typo * Remove docs folder * again docs * typo * Revert docs * Revert * .gitkeep * Update packages * React fail * Udpate react packages * Try tests changes * Bypass react error * Error workflow * Fix react errors * flaky test * React sick * test wine * missing update * typo * test without mono
- Loading branch information
Showing
712 changed files
with
21,199 additions
and
61,748 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,99 @@ | ||
--- | ||
name: ci-rust-sdk | ||
|
||
on: | ||
push: | ||
branches: [dev, dev-1.6, cid_cd_tests, 'feat*', 'release-*'] | ||
paths-ignore: | ||
- '**.md' | ||
|
||
pull_request: | ||
branches: [dev, dev-1.6, cid_cd_tests, 'feat*', 'release-*'] | ||
paths-ignore: | ||
- '**.md' | ||
|
||
jobs: | ||
build_and_test: | ||
strategy: | ||
matrix: | ||
#https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources | ||
os: [ubuntu-22.04] | ||
node-version: [20.x] | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
NODE_ADDRESS: http://127.0.0.1:7777/rpc | ||
EVENT_ADDRESS: http://127.0.0.1:9999/events/main | ||
# WARNING: These accounts, and their private keys, are publicly known. | ||
# Any funds sent to them on Mainnet or any other live network WILL BE LOST. | ||
PRIVATE_KEY_USER_1: MC4CAQAwBQYDK2VwBCIEII8ULlk1CJ12ZQ+bScjBt/IxMAZNggClWqK56D1/7CbI | ||
PRIVATE_KEY_USER_2: MC4CAQAwBQYDK2VwBCIEIJTD9IlUYzuMHbvAiFel/uqd6V7vUtUD19IEQlo6SAFC | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
profile: minimal | ||
components: rustfmt, clippy | ||
target: wasm32-unknown-unknown | ||
|
||
# - name: Fmt | ||
# uses: actions-rs/cargo@v1 | ||
# with: | ||
# command: fmt | ||
# args: -- --check | ||
|
||
# # - name: Audit | ||
# # uses: actions-rs/cargo@v1 | ||
# # with: | ||
# # command: audit | ||
# # args: --deny warnings || true | ||
|
||
# - name: Clippy | ||
# uses: actions-rs/cargo@v1 | ||
# with: | ||
# command: clippy | ||
|
||
# - name: Lint | ||
# run: make check-lint | ||
|
||
# - name: Use Node.js ${{ matrix.node-version }} | ||
# uses: actions/setup-node@5b949b50c3461bbcd5a540b150c368278160234a #v3.4.0 | ||
# with: | ||
# node-version: ${{ matrix.node-version }} | ||
# registry-url: 'https://registry.npmjs.org' | ||
|
||
# - name: Casper node launcher js | ||
# run: npx casper-node-launcher-js node --daemon | ||
|
||
# - name: Unit Tests | ||
# run: make test | ||
|
||
# - name: Integration Tests | ||
# run: make integration-test | ||
|
||
# - name: E2E Tests | ||
# run: make e2e-test | ||
|
||
# - name: Build lib for all targets | ||
# uses: actions-rs/cargo@v1 | ||
# with: | ||
# command: build | ||
# args: --lib --all-targets | ||
|
||
- name: Install Electron | ||
run: | | ||
sudo apt-get install --no-install-recommends -y libopenjp2-tools | ||
sudo dpkg --add-architecture i386 | ||
sudo mkdir -pm755 /etc/apt/keyrings | ||
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key | ||
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources | ||
sudo apt update | ||
sudo apt install --install-recommends winehq-stable | ||
- name: Install Wasm Pack | ||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||
|
||
- name: Build packages and apps | ||
run: make build |
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,75 @@ | ||
name: nightly-scheduled-test | ||
|
||
on: | ||
schedule: | ||
# * is a special character in YAML so you have to quote this string | ||
# runs every day at midnight | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
nightly-make-test: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04, ubuntu-22.04] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
profile: minimal | ||
components: rustfmt, clippy | ||
target: wasm32-unknown-unknown | ||
|
||
- name: Fmt | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: -- --check | ||
|
||
- name: Clippy | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
|
||
- name: Lint | ||
run: make check-lint | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@5b949b50c3461bbcd5a540b150c368278160234a #v3.4.0 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Casper node launcher js | ||
run: npx casper-node-launcher-js node --daemon | ||
|
||
- name: Unit Tests | ||
run: make test | ||
|
||
- name: Build lib for all targets | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --lib --all-targets | ||
|
||
- name: Install Wasm Pack | ||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||
|
||
- name: Build packages and apps | ||
run: make build | ||
|
||
- name: Slack Notification | ||
uses: ravsamhq/notify-slack-action@4ed28566c2bdcdaee6dca2b46b9666d01b4ed8a4 #v1.10.0 | ||
if: always() | ||
with: | ||
status: ${{ job.status }} | ||
notification_title: '*{repo}*' | ||
message_format: '{emoji} *{workflow}* *{status_message}* in <{repo_url}|{repo}@{branch}> on <{commit_url}|{commit_sha}>' | ||
footer: '<{run_url}|View Run>' | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
|
||
- name: Fake Commit after 50 days | ||
uses: gautamkrishnar/keepalive-workflow@790c7f09285a59b09bb578c85e271c6ff2af97c4 #v1.1.0 |
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,34 @@ | ||
name: Publish docs | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build-and-deploy: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-22.04] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
profile: minimal | ||
components: rustfmt, clippy | ||
target: wasm32-unknown-unknown | ||
|
||
- name: Build packages and apps | ||
run: make build | ||
|
||
- name: Doc | ||
run: make doc | ||
|
||
- name: Github pages 🚀 | ||
uses: JamesIves/github-pages-deploy-action@ba1486788b0490a235422264426c45848eac35c6 #v4.4.1 | ||
with: | ||
folder: docs # The folder the action should deploy. |
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,24 @@ | ||
--- | ||
name: publish-rust-sdk-rs | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
profile: minimal | ||
|
||
- name: Crate Publish | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: publish | ||
args: --token ${{ secrets.crates_io_token }} |
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,31 @@ | ||
name: publish-rust-sdk-ts | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
|
||
steps: | ||
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b #v3.0.2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@5b949b50c3461bbcd5a540b150c368278160234a #v3.4.0 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: make build | ||
|
||
- name: Publish pkg to NPM | ||
run: npm publish pkg/ --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Publish pkg-nodejs to NPM | ||
run: npm publish pkg-nodejs/ --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
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 |
---|---|---|
|
@@ -15,3 +15,5 @@ Cargo.lock | |
|
||
## any pem Key | ||
*.pem | ||
|
||
.env |
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
Empty file.
Empty file.
Oops, something went wrong.