Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
chore: add ci build steps
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJacobV committed Mar 3, 2023
1 parent 49fb23d commit 48fabbe
Show file tree
Hide file tree
Showing 9 changed files with 99 additions and 221 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
name: CI

on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
identity-token:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [lts/-2, lts/-1, lts/*]

name: Node.js ${{ matrix.node-version }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Configure Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- uses: pnpm/action-setup@v2
with:
version: 6.0.2
run_install: |
- recursive: true
- args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Compile TypeScript
run: pnpm build

- name: Test
run: pnpm test

- name: Lint
run: pnpm lint
13 changes: 4 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@
"dist/src/"
],
"scripts": {
"build": "tsc",
"build": "tsc -p 'tsconfig.build.json'",
"clean": "rm -rf -- dist",
"lint": "eslint src",
"test": "c8 mocha -r ts-node/register test/**/*.ts --exit"
},
"dependencies": {
"@bitgo-private/wallet-platform-types": "*",
"jose": "^4.11.2",
"jsonwebtoken": "^8.5.1",
"superagent": "^8.0.9"
"superagent": "^8.0.9",
"fp-ts": "^2.10.5",
"io-ts": "2.1.3"
},
"devDependencies": {
"@types/chai": "4.3.1",
Expand All @@ -38,18 +39,12 @@
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"fp-ts": "^2.10.5",
"io-ts": "2.1.3",
"mocha": "10.0.0",
"nock": "13.3.0",
"node:16": "link:@types/node:16",
"prettier": "^2.8.4",
"ts-node": "10.4.0",
"typescript": "4.6.3"
},
"engines": {
"node": "16"
},
"publishConfig": {
"access": "public"
}
Expand Down
Loading

0 comments on commit 48fabbe

Please sign in to comment.