Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into daniyar/clean-state…
Browse files Browse the repository at this point in the history
…-example
  • Loading branch information
itegulov committed May 25, 2022
2 parents f69c4d6 + 25b599b commit e4cb397
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Tests
on: push
jobs:
examples:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
- name: cross-contract-call
run: cd examples/cross-contract-call && yarn && yarn build && yarn test && cd ../..
- name: fungible-token
run: cd examples/fungible-token && yarn && yarn build && yarn test && cd ../..
- name: lockable-fungible-token
run: cd examples/lockable-fungible-token && yarn && yarn build && yarn test && cd ../..
- name: build test-token-receiver
run: cd examples/non-fungible-token/test-token-receiver && yarn && yarn build && cd ../../..
- name: non-fungible-token
run: cd examples/non-fungible-token && yarn && yarn build && yarn test && cd ../..
- name: status-message
run: cd examples/status-message && yarn && yarn build && yarn test && cd ../..
- name: status-message-collections
run: cd examples/status-message-collections && yarn && yarn build && yarn test && cd ../..
17 changes: 17 additions & 0 deletions .github/workflows/unit-test-matrix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Tests
on: push
jobs:
unit-tests:
strategy:
matrix:
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
- name: Install modules
run: yarn
- name: Run tests
run: yarn test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
],
"license": "(MIT AND Apache-2.0)",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 0"
},
"bin": {
"near-sdk": "cli/cli.js"
Expand Down
Binary file modified res/Linux-x86_64-qjsc
Binary file not shown.

0 comments on commit e4cb397

Please sign in to comment.