Skip to content

Commit

Permalink
Merge pull request #13 from ava-labs/ci-nits
Browse files Browse the repository at this point in the history
Update CI
  • Loading branch information
kanatliemre authored Jul 9, 2021
2 parents e63e9e1 + 765c9d2 commit 4fab09c
Show file tree
Hide file tree
Showing 6 changed files with 1,393 additions and 3,811 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
push:
branches:
- master
pull_request:

jobs:
Test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-node-
- run: yarn --frozen-lockfile
- run: yarn test --ci --coverage --maxWorkers=2
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-node-
- run: yarn --frozen-lockfile
- run: yarn lint
32 changes: 0 additions & 32 deletions .github/workflows/main.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/size.yml

This file was deleted.

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16
17 changes: 3 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"version": "0.7.3",
"license": "MIT",
"license": "BSD-3",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
"dist",
"src"
],
"engines": {
"node": ">=15"
"node": ">=16"
},
"scripts": {
"start": "rollup -c --watch",
Expand All @@ -17,9 +17,7 @@
"test": "jest",
"test:watch": "jest --watch",
"lint": "eslint .",
"prepare": "husky install && rollup -c",
"size": "size-limit",
"analyze": "size-limit --why",
"prepare": "husky install",
"docs": "typedoc src/index.ts",
"docs:watch": "typedoc --watch src/index.ts"
},
Expand All @@ -31,27 +29,19 @@
},
"name": "@avalabs/avalanche-wallet-sdk",
"author": "AVA Labs",
"module": "dist/avalanche-wallet-sdk.esm.js",
"repository": {
"type": "git",
"url": "https://github.com/ava-labs/avalanche-wallet-sdk"
},
"publishConfig": {
"access": "restricted"
},
"size-limit": [
{
"path": "dist/index.js",
"limit": "1 MB"
}
],
"devDependencies": {
"@babel/core": "^7.14.0",
"@babel/preset-env": "^7.14.1",
"@babel/preset-typescript": "^7.13.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-typescript": "^8.2.1",
"@size-limit/preset-small-lib": "^4.10.2",
"@types/big.js": "^6.0.2",
"@types/bn.js": "4.11.6",
"@types/create-hash": "^1.2.2",
Expand All @@ -71,7 +61,6 @@
"rollup": "^2.47.0",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-typescript2": "^0.30.0",
"size-limit": "^4.10.2",
"ts-node": "^9.1.1",
"tslib": "^2.2.0",
"ttypescript": "^1.5.12",
Expand Down
Loading

0 comments on commit 4fab09c

Please sign in to comment.