-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: major refactor, JS SDK support, CLI user prompts
- Loading branch information
Showing
130 changed files
with
63,477 additions
and
8,423 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 |
---|---|---|
@@ -1,2 +1,8 @@ | ||
dist | ||
node_modules | ||
templates/contracts/js/src/contract.ts | ||
templates/integration-tests/shared/js-tests/src/main.ava.ts | ||
templates/integration-tests/overrides/js-contract/js-tests/src/main.ava.ts | ||
src/*.js | ||
jest.config.js | ||
_testrun |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
name: Tests E2E | ||
on: | ||
workflow_dispatch: | ||
|
||
push: | ||
branches: | ||
- 'master' | ||
jobs: | ||
tests-bash: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [ ubuntu-latest, macos-latest ] | ||
nodejs: [ 16 ] | ||
contract: [ js, rust, assemblyscript ] | ||
frontend: [ react, vanilla, none ] | ||
tests: [ js, rust ] | ||
# exclude: | ||
# - frontend: vanilla | ||
# - frontend: none | ||
# include: | ||
# - contract: js | ||
# frontend: vanilla | ||
# tests: js | ||
# - contract: js | ||
# frontend: none | ||
# tests: js | ||
runs-on: ${{ matrix.platform }} | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.nodejs }} | ||
- name: Install modules | ||
run: | | ||
npm install | ||
npm run build | ||
- name: Scaffold template | ||
run: | | ||
node index.js _testrun --contract ${{ matrix.contract }} --frontend ${{ matrix.frontend }} --tests ${{ matrix.tests }} --install | ||
- name: Build template | ||
env: | ||
NEAR_ENV: ci | ||
IS_GITHUB_ACTION: true | ||
run: | | ||
cd _testrun | ||
npm run build | ||
- name: Test template | ||
if: matrix.platform != 'macos-latest' | ||
env: | ||
NEAR_ENV: ci | ||
IS_GITHUB_ACTION: true | ||
run: | | ||
cd _testrun | ||
npm run test | ||
# tests-wsl: | ||
# defaults: | ||
# run: | ||
# shell: wsl-bash {0} | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# platform: [ windows-latest ] | ||
# nodejs: [ 16 ] | ||
# contract: [ js, rust ] | ||
# frontend: [ react, vanilla, none ] | ||
# tests: [ js, rust ] | ||
# exclude: | ||
# - contract: js | ||
# - tests: js | ||
# runs-on: ${{ matrix.platform }} | ||
# timeout-minutes: 60 | ||
# steps: | ||
# - name: Setup WSL | ||
# uses: Vampire/[email protected] | ||
# with: | ||
# distribution: Ubuntu-22.04 | ||
# - uses: actions/checkout@v2 | ||
# - name: Setup node | ||
# run: | | ||
# sudo apt-get install curl | ||
# curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - | ||
# sudo apt-get install -y nodejs | ||
# - name: rust-toolchain | ||
# uses: actions-rs/[email protected] | ||
# with: | ||
# toolchain: stable | ||
# - name: Install modules | ||
# run: | | ||
# npm install | ||
# npm run build | ||
# - name: Scaffold template | ||
# run: | | ||
# node index.js _testrun --contract ${{ matrix.contract }} --frontend ${{ matrix.frontend }} --tests ${{ matrix.tests }} --install | ||
# - name: Build template | ||
# env: | ||
# NEAR_ENV: ci | ||
# IS_GITHUB_ACTION: true | ||
# run: | | ||
# cd _testrun | ||
# npm run build | ||
# - name: Test template | ||
# env: | ||
# NEAR_ENV: ci | ||
# IS_GITHUB_ACTION: true | ||
# run: | | ||
# cd _testrun | ||
# npm run test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
tasks: | ||
- init: yarn install | ||
- init: npm install | ||
github: | ||
prebuilds: | ||
addBadge: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
contracts/rust/target | ||
contracts/out | ||
templates/contracts/rust/target | ||
templates/contracts/out |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.