Skip to content

Commit

Permalink
Merge pull request #102 from near-examples/workspaces-tests
Browse files Browse the repository at this point in the history
Implement workspaces libraries as integration tests
  • Loading branch information
idea404 authored May 6, 2022
2 parents b51df58 + fb06d38 commit afc1f5e
Show file tree
Hide file tree
Showing 19 changed files with 319 additions and 20,478 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,21 @@ jobs:
tests:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- uses: actions-rs/toolchain@v1
- name: Checkout branch
uses: actions/checkout@v2
- name: Install Node
uses: actions/setup-node@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
- name: Install modules
run: yarn
- name: Run tests
env:
IS_GITHUB_ACTION: true
run: yarn build && cargo test -- --nocapture && ./test.sh
- name: Run unit tests
run: yarn test:unit
- name: Run integration tests
run: yarn test:integration
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ target
.cache
.parcel-cache
dist
*.lock
package-lock.json
res/**

# IDE
.idea
Expand All @@ -15,3 +18,4 @@ neardev

# Dependencies
node_modules
*/target
Loading

0 comments on commit afc1f5e

Please sign in to comment.