Skip to content

Commit a0428c4

Browse files
authored
Add CI job for install, lint, build on PR (#66)
* packaging 0.7.0 * Added first CI flow (install, lint, build) - tests will run here as well once merged * lint fixes
1 parent 586c400 commit a0428c4

File tree

6 files changed

+21
-7
lines changed

6 files changed

+21
-7
lines changed

.github/workflows/CI.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: CI
2+
on: [pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- uses: actions/setup-node@v1
10+
with:
11+
node-version: 16.x
12+
- run: npm ci
13+
- run: npm run lint
14+
- run: npm run build

resources/accountEndOfDay.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { AccountEndOfDay } from "../types/accountEndOfDay"
77
export class AccountsEndOfDay extends BaseResource {
88

99
constructor(token: string, basePath: string, config?: UnitConfig) {
10-
super(token, basePath + '/account-end-of-day', config)
10+
super(token, basePath + "/account-end-of-day", config)
1111
}
1212

1313
public async list(params?: AccountEndOfDayParams): Promise<UnitResponse<AccountEndOfDay[]> & Include<Customer> & Include<Account> & Include<Customer[]>> {

resources/baseResource.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import axiosStatic, { AxiosInstance } from "axios"
2-
import { extractUnitError, UnitConfig, UnitError } from "../types/common"
2+
import { extractUnitError, UnitConfig } from "../types/common"
33

44
export class BaseResource {
55
private resourcePath: string
6-
private headers: {}
6+
private headers: object
77
private readonly axios: AxiosInstance
88

99
constructor(token: string, resourcePath: string, config?: UnitConfig) {
@@ -12,7 +12,7 @@ export class BaseResource {
1212
this.headers = {
1313
"Authorization": `Bearer ${token}`,
1414
"Content-Type": "application/vnd.api+json",
15-
'User-Agent': "unit-node-sdk"
15+
"User-Agent": "unit-node-sdk"
1616
}
1717

1818
this.axios = config?.axios ?? axiosStatic

resources/payments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export interface PaymentListParams {
7171
* Optional. Filter Applications by Tags.
7272
* default: empty
7373
*/
74-
tags?: Object
74+
tags?: object
7575

7676
/**
7777
* Optional. .Leave empty or provide sort = createdAt for ascending order.Provide sort = -createdAt(leading minus sign) for descending order.

types/account.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export interface BatchAccount {
218218
accountNumber: string
219219
balance: number
220220
hold: number
221-
},
221+
}
222222
relationships: {
223223
org: Relationship
224224
}

types/returns.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Relationship } from "./common";
1+
import { Relationship } from "./common"
22

33
export interface ReturnReceivedAchTransactionRequest {
44
transactionId: string

0 commit comments

Comments
 (0)