Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 14 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
name: CI
name: Build, lint, and test

on: [push]

jobs:
build:
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}
name: Build, lint, and test on Nodejs

runs-on: ubuntu-latest

runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['14.x']
os: [ubuntu-latest, windows-latest, macOS-latest]
node-version: [16.x]

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1

- name: Test
run: yarn test --ci --coverage --maxWorkers=2
node-version: ${{ matrix.node-version }}
cache: yarn
- name: Install dependencies
run: yarn --ignore-engines

- name: Build
run: yarn build
6 changes: 5 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ yan start // npm run start
``` javascript
yarn test // npm run test
```
3. Make your necessary changes and accompany each function with a test.
3. Run tests for a specific file. Jest tests are setup to run in watch mode.
``` javascript
yarn test test/file.test.ts // npm run test test/file.test.ts
```
4. Make your necessary changes and accompany each function with a test.


✨ Thanks for contributing to **multichain-crypto-wallet**! ✨
Loading
Loading