Skip to content

Commit 2f32dd2

Browse files
committed
ci: print the prettier version
TICKET: COIN-2220
1 parent 1a285e6 commit 2f32dd2

File tree

47 files changed

+948
-853
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+948
-853
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ jobs:
5353

5454
- name: Install Packages
5555
if: steps.lerna-cache.outputs.cache-hit != 'true' || contains( github.event.pull_request.labels.*.name, 'SKIP_CACHE')
56-
run: yarn install --with-frozen-lockfile
57-
58-
- name: build packages
59-
if: steps.lerna-cache.outputs.cache-hit == 'true'
60-
run: yarn run postinstall
56+
run: yarn install --with-frozen-lockfile --ignore-scripts
6157

6258
- name: Lint Commit Messages
6359
run: |
@@ -69,6 +65,9 @@ jobs:
6965
- name: Dependency Audit
7066
run: yarn run improved-yarn-audit --min-severity high
7167

68+
- name: Print prettier version
69+
run: ./node_modules/.bin/prettier --version
70+
7271
- name: Lint Source Code
7372
run: yarn run lint
7473

@@ -78,6 +77,10 @@ jobs:
7877
- name: Check Package Dependencies
7978
run: yarn run check-deps
8079

80+
- name: build packages
81+
if: steps.lerna-cache.outputs.cache-hit == 'true'
82+
run: yarn run postinstall
83+
8184
- name: Unit Test
8285
run: yarn run unit-test-changed
8386
env:

modules/abstract-cosmos/resources/MsgCompiled.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,8 @@ $root.common = (function () {
498498
options.longs === String
499499
? $util.Long.prototype.toString.call(message.decimals)
500500
: options.longs === Number
501-
? new $util.LongBits(message.decimals.low >>> 0, message.decimals.high >>> 0).toNumber()
502-
: message.decimals;
501+
? new $util.LongBits(message.decimals.low >>> 0, message.decimals.high >>> 0).toNumber()
502+
: message.decimals;
503503
return object;
504504
};
505505

@@ -1678,8 +1678,8 @@ $root.types = (function () {
16781678
options.bytes === String
16791679
? $util.base64.encode(message.signer, 0, message.signer.length)
16801680
: options.bytes === Array
1681-
? Array.prototype.slice.call(message.signer)
1682-
: message.signer;
1681+
? Array.prototype.slice.call(message.signer)
1682+
: message.signer;
16831683
return object;
16841684
};
16851685

@@ -1945,15 +1945,15 @@ $root.types = (function () {
19451945
options.bytes === String
19461946
? $util.base64.encode(message.fromAddress, 0, message.fromAddress.length)
19471947
: options.bytes === Array
1948-
? Array.prototype.slice.call(message.fromAddress)
1949-
: message.fromAddress;
1948+
? Array.prototype.slice.call(message.fromAddress)
1949+
: message.fromAddress;
19501950
if (message.toAddress != null && message.hasOwnProperty('toAddress'))
19511951
object.toAddress =
19521952
options.bytes === String
19531953
? $util.base64.encode(message.toAddress, 0, message.toAddress.length)
19541954
: options.bytes === Array
1955-
? Array.prototype.slice.call(message.toAddress)
1956-
: message.toAddress;
1955+
? Array.prototype.slice.call(message.toAddress)
1956+
: message.toAddress;
19571957
if (message.amount && message.amount.length) {
19581958
object.amount = [];
19591959
for (var j = 0; j < message.amount.length; ++j)

modules/abstract-eth/src/abstractEthLikeNewCoins.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,8 +1367,8 @@ export abstract class AbstractEthLikeNewCoins extends AbstractEthLikeCoin {
13671367
const gasPrice = params.eip1559
13681368
? new optionalDeps.ethUtil.BN(params.eip1559.maxFeePerGas)
13691369
: params.gasPrice
1370-
? new optionalDeps.ethUtil.BN(this.setGasPrice(params.gasPrice))
1371-
: await this.getGasPriceFromExternalAPI();
1370+
? new optionalDeps.ethUtil.BN(this.setGasPrice(params.gasPrice))
1371+
: await this.getGasPriceFromExternalAPI();
13721372

13731373
const bitgoFeeAddressNonce = await this.getAddressNonce(bitgoFeeAddress);
13741374

modules/bitgo/.mocharc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ reporter: 'min'
44
reporter-option:
55
- 'cdn=true'
66
- 'json=false'
7-
exit: true
7+
exit: true

modules/bitgo/test/integration/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html>
33
<head>
44
<title>Mocha</title>

modules/bitgo/test/integration/wallet.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,15 +1501,15 @@ describe('Wallet API', function () {
15011501
amount: 0.01 * 1e8,
15021502
});
15031503
recipients[TestBitGo.TEST_WALLET2_ADDRESS] = 0.01 * 1e8;
1504-
return TransactionBuilder.createTransaction({ wallet: wallet1, recipients: recipients }).then(function (
1505-
result
1506-
) {
1507-
result.should.have.property('unspents');
1508-
result.txInfo.nP2pkhInputs.should.equal(15);
1509-
result.should.have.property('fee');
1510-
result.should.have.property('feeRate');
1511-
result.walletId.should.equal(wallet1.id());
1512-
});
1504+
return TransactionBuilder.createTransaction({ wallet: wallet1, recipients: recipients }).then(
1505+
function (result) {
1506+
result.should.have.property('unspents');
1507+
result.txInfo.nP2pkhInputs.should.equal(15);
1508+
result.should.have.property('fee');
1509+
result.should.have.property('feeRate');
1510+
result.walletId.should.equal(wallet1.id());
1511+
}
1512+
);
15131513
});
15141514

15151515
it('Filter uneconomic unspents test, no feerate set', function () {
@@ -1658,14 +1658,14 @@ describe('Wallet API', function () {
16581658
amount: 0.01 * 1e8,
16591659
});
16601660
recipients[TestBitGo.TEST_WALLET2_ADDRESS] = 0.01 * 1e8;
1661-
return TransactionBuilder.createTransaction({ wallet: wallet1, recipients: recipients }).then(function (
1662-
result
1663-
) {
1664-
result.should.have.property('unspents');
1665-
result.should.have.property('fee');
1666-
result.should.have.property('feeRate');
1667-
result.walletId.should.equal(wallet1.id());
1668-
});
1661+
return TransactionBuilder.createTransaction({ wallet: wallet1, recipients: recipients }).then(
1662+
function (result) {
1663+
result.should.have.property('unspents');
1664+
result.should.have.property('fee');
1665+
result.should.have.property('feeRate');
1666+
result.walletId.should.equal(wallet1.id());
1667+
}
1668+
);
16691669
});
16701670
});
16711671

modules/bitgo/test/v2/unit/coins/utxo/transaction.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,8 @@ function run<TNumber extends number | bigint = number>(
453453
v === undefined || v instanceof utxolib.bitgo.UtxoPsbt
454454
? undefined
455455
: v instanceof utxolib.bitgo.UtxoTransaction
456-
? transactionToObj<TNumber>(v)
457-
: transactionHexToObj(v.txHex, coin.network, amountType)
456+
? transactionToObj<TNumber>(v)
457+
: transactionHexToObj(v.txHex, coin.network, amountType)
458458
) as TransactionObjStages;
459459
}
460460

@@ -563,10 +563,10 @@ function run<TNumber extends number | bigint = number>(
563563
stageName === 'prebuild' || pubs === undefined
564564
? 0
565565
: stageName.startsWith('halfSigned')
566-
? 1
567-
: stageName.startsWith('fullSigned')
568-
? 2
569-
: undefined;
566+
? 1
567+
: stageName.startsWith('fullSigned')
568+
? 2
569+
: undefined;
570570

571571
explanation.inputSignatures.should.eql(
572572
// FIXME(BG-35154): implement signature verification for replay protection inputs

modules/bitgo/test/v2/unit/internal/tssUtils/ecdsa.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,8 @@ describe('TSS Ecdsa Utils:', async function () {
144144
curve: 'secp256k1',
145145
}),
146146
];
147-
[userGpgKey, userLocalBackupGpgKey, thirdPartyBackupGpgKeyPair, bitGoGPGKeyPair] = await Promise.all(
148-
gpgKeyPromises
149-
);
147+
[userGpgKey, userLocalBackupGpgKey, thirdPartyBackupGpgKeyPair, bitGoGPGKeyPair] =
148+
await Promise.all(gpgKeyPromises);
150149
thirdPartyBackupPublicGpgKey = await openpgp.readKey({ armoredKey: thirdPartyBackupGpgKeyPair.publicKey });
151150
bitgoPublicKey = await openpgp.readKey({ armoredKey: bitGoGPGKeyPair.publicKey });
152151
const constants = {

modules/blake2b-wasm/example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html>
33
<head>
44
<title>Blake2b-WASM Demo</title>

modules/blockapis/src/BaseHttpClient.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import * as superagent from 'superagent';
22
import * as Bluebird from 'bluebird';
33

44
export class ApiRequestError extends Error {
5-
constructor(public url: string, public reason: Error | string) {
5+
constructor(
6+
public url: string,
7+
public reason: Error | string
8+
) {
69
super(`error in API request: ${url}: ${reason}`);
710
}
811

0 commit comments

Comments
 (0)