Commit Graph

3130 Commits

Author SHA1 Message Date
Opender Singh
efc11b3ba2 version packages lib@2.3.3-alpha.0 core@2021.6.0-alpha.0 lib@2.3.3-alpha.0 2021-10-05 16:59:17 +13:00
Opender Singh
bc7bf8f08c bump version 2021-10-05 16:56:29 +13:00
Opender Singh
cbd98f5842 fix typo in release workflow 2021-10-05 16:56:14 +13:00
Opender Singh
7fe5d7c76a uncomment release workflow changes 2021-10-05 15:32:46 +13:00
Opender Singh
40e8dec40e does moving the npm target env variables fix node-libcurl for inso? 2021-10-05 15:32:46 +13:00
Opender Singh
0aa4e8f939 switch test workflow on 2021-10-05 15:32:46 +13:00
Opender Singh
db9d294b4e skip tests for now 2021-10-05 15:32:46 +13:00
Opender Singh
5871ee5937 check as string 2021-10-05 15:32:46 +13:00
Opender Singh
1ca1b3f6a6 try json conversion 2021-10-05 15:32:46 +13:00
Opender Singh
18a8091235 this should create a release because I deleted the existing one 2021-10-05 15:32:46 +13:00
Opender Singh
56573abdbc BINGO! This will skip 2021-10-05 15:32:46 +13:00
Opender Singh
485f279431 should skip 2021-10-05 15:32:46 +13:00
Opender Singh
f95d0f3231 should skip 2021-10-05 15:32:46 +13:00
Opender Singh
927601bf61 should skip 2021-10-05 15:32:46 +13:00
Opender Singh
e8179cbe6d should skip because the release already exists 2021-10-05 15:32:46 +13:00
Opender Singh
d25b534a56 flip condition?? 2021-10-05 15:32:46 +13:00
Opender Singh
10c33d268b rename 2021-10-05 15:32:46 +13:00
Opender Singh
61b9a1c543 disable test workflow for now 2021-10-05 15:32:46 +13:00
Opender Singh
cde1684ec9 debug steps 2021-10-05 15:32:46 +13:00
Opender Singh
4a6bd324f7 fix condition 2021-10-05 15:32:46 +13:00
Opender Singh
3d8870ecdd handle error when no release is found for tag 2021-10-05 15:32:46 +13:00
Opender Singh
eddea3e36d fix step output 2021-10-05 15:32:46 +13:00
Opender Singh
174d2fcefa update release script to only create a release if it doesnt exist 2021-10-05 15:32:46 +13:00
Opender Singh
aa17685867 release action WIP 2021-10-05 15:32:46 +13:00
Opender Singh
06be068c0b Update compression args 2021-10-05 15:32:46 +13:00
Opender Singh
3542bbcc70 update linux compression command to use xz compressino 2021-10-05 15:32:46 +13:00
Opender Singh
e6c288c7b9 compress via script 2021-10-05 15:32:46 +13:00
Dimitri Mitropoulos
51096a2565 fixes typo now that there's only one binary
before, this made sense to be plural because it was always expected that there'd be more than one binary
2021-10-05 15:32:46 +13:00
Dimitri Mitropoulos
584d57d2a8 adds documentation and simplifies targets
this was returning an array before in part because it needed to check if the array was empty to detect an error case.  now, it doesn't need to do that, so there's no point in returning an array that statically only has one item just to join it with commas later (which will have no effect since it only has one item).  If we ever want to modify this, we can just as well change something like `'node12-macos-x64'` to `'node12-macos-x64,node12-macos-arm64'` in the `getTargets` function.
2021-10-05 15:32:46 +13:00
Dimitri Mitropoulos
794a28859c simplifies platform getting
there's no way for the platform to change in the midst of a script like this, and therefore no motivation to have a closure for it.
2021-10-05 15:32:46 +13:00
Dimitri Mitropoulos
8cf4ef3dc1 fixes error handling (and removes some else-returns) in pkg.ts
prior to this, the `reject` on line 28 does not hault execution.  it's reasonable that this mistake was made because it's an easy one to make if you don't allow the function that ultimately had the failure case to have the control flow.

As it was before, code _after_ the reject was still executing.

Now, the promise rejection is handled in the place it really occurs.  Promises are designed to work well with `throw` like this and since there is no other callback that the throw is captured in (e.g. like a setTimeout or something) this is totally fine to do.  Here is what the output would look like:

```
> ts-node src/scripts/pkg.ts

Error: [pkg-inso] Unsupported OS: freebsd
    at getTargets (/home/dimitri/src/github.com/Kong/insomnia/packages/insomnia-inso/src/scripts/pkg.ts:24:9)
    at /home/dimitri/src/github.com/Kong/insomnia/packages/insomnia-inso/src/scripts/pkg.ts:29:21
    at new Promise (<anonymous>)
    at pkg (/home/dimitri/src/github.com/Kong/insomnia/packages/insomnia-inso/src/scripts/pkg.ts:28:10)
    at Object.<anonymous> (/home/dimitri/src/github.com/Kong/insomnia/packages/insomnia-inso/src/scripts/pkg.ts:67:1)
    at Module._compile (internal/modules/cjs/loader.js:1137:30)
    at Module.m._compile (/home/dimitri/src/github.com/Kong/insomnia/packages/insomnia-inso/node_modules/ts-node/src/index.ts:1056:23)
    at Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
    at Object.require.extensions.<computed> [as .ts] (/home/dimitri/src/github.com/Kong/insomnia/packages/insomnia-inso/node_modules/ts-node/src/index.ts:1059:12)
    at Module.load (internal/modules/cjs/loader.js:985:32)
```
2021-10-05 15:32:46 +13:00
Dimitri Mitropoulos
746934084b updates package-lock.json of insomnia-plugin-response
(all I did was run a bootstrap, so I'm assuming this is correct)
2021-10-05 15:32:46 +13:00
Opender Singh
5ae0d1b0d8 update packagelock and tar command 2021-10-05 15:32:46 +13:00
Opender Singh
0f572abe80 YAMLING 2021-10-05 15:32:46 +13:00
Opender Singh
a8ce57df27 add test case for export spec 2021-10-05 15:32:46 +13:00
Opender Singh
11b76efaef improve tar structure and package from script 2021-10-05 15:32:46 +13:00
Opender Singh
a3e1157ff7 update test workflow to tar and upload 2021-10-05 15:32:46 +13:00
Opender Singh
ad1ca71142 remove libc detection 2021-10-05 15:32:45 +13:00
Opender Singh
a665fc4417 add smoke tests for other commands and move docs to main readme 2021-10-05 15:32:45 +13:00
Opender Singh
8ea57f3f4d write oa3 spec for smoke test server, update inso-nedb fixture to include a spec so we can lint and generate config with it, add readme for how to update it 2021-10-05 15:32:45 +13:00
Opender Singh
1d7f08b10d refactor cli smoke test and add ramda 2021-10-05 15:32:45 +13:00
Opender Singh
db5c182263 extract TS move to separate PR 2021-10-05 15:32:45 +13:00
Opender Singh
93c95dc6b0 upload binary artifacts for OS 2021-10-05 15:32:45 +13:00
Opender Singh
eac24d936a only target node12-x64 for the OS being run on 2021-10-05 15:32:45 +13:00
Opender Singh
ba269aca46 fix test 2021-10-05 15:32:45 +13:00
Opender Singh
fabbd6e8ce add CLI package step to test workflow 2021-10-05 15:32:45 +13:00
Opender Singh
cd46099afd script to override pkg targets 2021-10-05 15:32:45 +13:00
Opender Singh
0fa695c8f4 remove debug script 2021-10-05 15:32:45 +13:00
Opender Singh
f0557b8196 replace all jsonpath with jsonpath-plus 2021-10-05 15:32:45 +13:00
Opender Singh
42d31fd9b8 convert insomnia-plugin-jsonpath to ts and webpack in an attempt to overcome pkg failing to find insomnia-plugin-jsonpath > jsonpath > esprima 2021-10-05 15:32:45 +13:00