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

chore: add ci build steps #2

Merged
merged 1 commit into from
Mar 3, 2023
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
44 changes: 44 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
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

- uses: pnpm/action-setup@v2
with:
version: 7

- name: Use Node.js
uses: actions/setup-node@v3
with:
cache: "pnpm"
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: pnpm install

- 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