Skip to content

Commit

Permalink
unit test GitHub Action added
Browse files Browse the repository at this point in the history
  • Loading branch information
volovyks committed May 23, 2022
1 parent eee284c commit 252d344
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/unit-test-matrix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Tests
on: push
jobs:
tests:
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: Install modules
run: yarn
- name: Run tests
env:
NODE_ENV: ci
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

0 comments on commit 252d344

Please sign in to comment.