Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache database on client #7

Open
wants to merge 224 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
224 commits
Select commit Hold shift + click to select a range
b4857c7
workspace migration logs (#6038)
jackkav Jun 21, 2023
e461273
Add AI test generation (#6053)
gatzjames Jun 23, 2023
1380b6b
O2K add deprecation warnings (#6029)
jackkav Jun 26, 2023
033b748
exclude macos release (#6056)
gatzjames Jun 26, 2023
d110638
add support for multiple workspaces in one import file (#6044)
jackkav Jun 27, 2023
36a5635
Revert "exclude macos release (#6056)" (#6061)
gatzjames Jun 27, 2023
90b9516
make all migration functions non-async (#6043)
jackkav Jun 27, 2023
ca3191f
v3.17.0
jackkav Jun 27, 2023
eb0af2e
Bump app version to 2023.3.0 and lerna package versions
jackkav Jun 27, 2023
d9f70ec
Merge branch 'release/2023.3.0' into develop
jackkav Jun 27, 2023
20b4556
upgrade pkg (#6001)
jackkav Jun 29, 2023
ffbf2ee
Electron 23 upgrade (#5987)
jackkav Jun 29, 2023
3f6865e
chore: change electron-builder mac notarize config (#6054)
filfreire Jul 3, 2023
7221518
fix: curl transform - allow header without value (#6069)
jackkav Jul 3, 2023
d0240e3
fix: inso dereferencing/flattening $refs (#6080)
jackkav Jul 3, 2023
4af5326
improve in-app update experience (#6064)
jackkav Jul 3, 2023
52d92e3
fix: auto update 10s delay (#6083)
jackkav Jul 3, 2023
f7f13b3
v3.18.0-beta.0
jackkav Jul 3, 2023
a48d92a
Bump app version to 2023.4.0-beta.0 and lerna package versions
jackkav Jul 3, 2023
a5cf1a5
Merge branch 'release/2023.4.0-beta.0' into develop
jackkav Jul 4, 2023
6aa7cf1
:rocket: 2023.4.0 (#6086)
insomnia-infra Jul 4, 2023
c0e25d0
Bump/electron-25 (#6081)
jackkav Jul 4, 2023
f8c8d93
Bump/pre-update-modules (#6087)
jackkav Jul 5, 2023
27bd68e
chore: bump lerna v6 (#6096)
filfreire Jul 5, 2023
bd0aaf3
concurrently can silent fail (#6099)
jackkav Jul 5, 2023
ba1f6e4
fix import spec (#6097)
jackkav Jul 5, 2023
5b7f45e
Universal Insomnia/Git Sync for all files (documents/collections) (#5…
gatzjames Jul 5, 2023
7729a2f
Fix/debug-logs (#6103)
jackkav Jul 6, 2023
76b6f0e
remove unreachable (#6105)
jackkav Jul 6, 2023
5ee0e38
fix (#6107)
jackkav Jul 6, 2023
3576f6a
remove unused hook (#6112)
jackkav Jul 7, 2023
9141d9a
Feat/second-window (#6104)
jackkav Jul 7, 2023
b4c450f
make user-agent optional (#6109)
jackkav Jul 7, 2023
a5c7e43
add SEE routes (#6113)
jackkav Jul 7, 2023
9315907
fix initial cloning of git repo (#6115)
gatzjames Jul 7, 2023
e8c9afb
move analytics over ipc (#6110)
jackkav Jul 7, 2023
abfabd4
Chore/node-integration-continued (#6106)
jackkav Jul 7, 2023
3fdafdc
hotfix (#6116)
jackkav Jul 7, 2023
018d7de
move things out of misc and move auth window to main (#6117)
jackkav Jul 7, 2023
985381c
Bump protobufjs and @grpc/proto-loader in /packages/insomnia-smoke-te…
dependabot[bot] Jul 10, 2023
1d8fa4a
move axios to main (#6118)
jackkav Jul 10, 2023
45413d1
Bump/axios-1.4.0 (#6126)
jackkav Jul 10, 2023
1d46100
Bump/linters (#6128)
jackkav Jul 10, 2023
1e35cd6
Bump/tough-cookie (#6130)
jackkav Jul 11, 2023
da13df9
Chore/fetch-cleaning (#6131)
jackkav Jul 11, 2023
64fe218
Environments data routing (#6127)
gatzjames Jul 11, 2023
2cd79b3
Fix/fetch body (#6134)
jackkav Jul 11, 2023
fe63357
fix(ci): entrypoint path for pkg upload (#6129)
curiositycasualty Jul 11, 2023
7b41622
fix: Issue with incorrect OperationName applied on GraphQL request (#…
pukuba Jul 11, 2023
0113ba0
Fix #5923: keybind action for switch environments (#5998)
sebastianjonasson Jul 11, 2023
7691ab8
v3.19.0-beta.0
jackkav Jul 11, 2023
d30dd99
Bump app version to 2023.5.0-beta.0 and lerna package versions
jackkav Jul 11, 2023
54ae285
fixtest
jackkav Jul 11, 2023
e51d8d7
Merge branch 'develop' into release/2023.5.0-beta.0
jackkav Jul 11, 2023
89e64ab
Merge branch 'release/2023.5.0-beta.0' into develop
filfreire Jul 12, 2023
8db34fd
Bump/security (#6139)
jackkav Jul 12, 2023
d0e612f
Feat/force-update (#6141)
jackkav Jul 12, 2023
af5cca3
fix lint
jackkav Jul 12, 2023
c2c228f
fix release-publish (#6143)
filfreire Jul 12, 2023
c89cd8b
done hack to fix windows ci (#6144)
jackkav Jul 12, 2023
6338872
add anchor (#6149)
jackkav Jul 13, 2023
35d6e24
hotfix git+ in url (#6151)
jackkav Jul 13, 2023
6f60482
fix gitsync (#6152)
jackkav Jul 13, 2023
828e56f
v3.19.0-beta.1
jackkav Jul 13, 2023
45dd25b
Bump app version to 2023.5.0-beta.2 and lerna package versions
jackkav Jul 13, 2023
a8e5540
Merge branch 'release/2023.5.0-beta.2' into develop
jackkav Jul 13, 2023
80502e9
fix: Ignore oAuth2 exception on redirect of initial url load (#5926) …
chrisjq Jul 14, 2023
97138fc
gRPC: Support JSONPath in response (#5996)
sebastianjonasson Jul 14, 2023
d5eff5f
bump grpc reflection fork (#6158)
jackkav Jul 16, 2023
ee36950
Allow empty name when duplicate request (#6138)
pilotpirxie Jul 17, 2023
45ee825
Import all available header properties from Postman (#6162)
petoc Jul 19, 2023
3cdd4c8
SSE/EventStream support (#6147)
jackkav Jul 19, 2023
0a778ba
hot fix
jackkav Jul 19, 2023
f34d765
add stack and redirect to error page (#6171)
jackkav Jul 19, 2023
8ea8967
save refetched schema (#6172)
jackkav Jul 19, 2023
f5d61aa
hotfix: trackevent
jackkav Jul 19, 2023
29149cb
v3.19.0-beta.2
jackkav Jul 19, 2023
1fe69dd
Bump app version to 2023.5.0-beta.3 and lerna package versions
jackkav Jul 19, 2023
00368e4
Add: 5xx unofficial HTTP codes and handle 'Unknown' status messages (…
pukuba Jul 19, 2023
4c187e9
add support for importing subenvironments (#6174)
gatzjames Jul 19, 2023
bb638b5
Merge branch 'release/2023.5.0-beta.3' into develop
jackkav Jul 19, 2023
e000001
Fix/auto-backup (#6176)
jackkav Jul 19, 2023
bbf1de0
v3.19.0-beta.3
jackkav Jul 19, 2023
9b56644
Bump app version to 2023.5.0-beta.4 and lerna package versions
jackkav Jul 19, 2023
432c4a0
Merge branch 'release/2023.5.0-beta.4' into develop
jackkav Jul 19, 2023
00cd22c
eventstream pass 2 (#6170)
jackkav Jul 19, 2023
64ca287
hotfix console.log
jackkav Jul 19, 2023
7ccdb59
hotfix check now
jackkav Jul 20, 2023
3ed29c3
:rocket: 2023.5.0-beta.5 (#6178)
insomnia-infra Jul 20, 2023
ce1d395
Fix/multi window connection state (#6175)
jackkav Jul 21, 2023
637f647
fix: duplicate methods from gRPC reflection (#6182)
nbgraham Jul 21, 2023
4c85e3d
fix(download): properly parse content-disposition filename (#6159)
micc83 Jul 21, 2023
a2340c8
speed up app start (#6184)
jackkav Jul 24, 2023
81a6247
chore: move plugins into app (#6185)
jackkav Jul 24, 2023
9fd965e
Chore/flatten-plugins-cont (#6186)
jackkav Jul 25, 2023
c72eb2d
formatting (#6190)
jackkav Jul 25, 2023
7886fdb
redux->remix workspace route (#6191)
jackkav Jul 25, 2023
18829af
fix: await promise (#6197)
nbgraham Jul 25, 2023
6b9cc35
redux removal part 2 (#6198)
jackkav Jul 26, 2023
0890889
v3.19.0-beta.5
jackkav Jul 25, 2023
2559c79
Bump app version to 2023.5.0-beta.6 and lerna package versions
jackkav Jul 25, 2023
56d01ba
Merge branch 'release/2023.5.0-beta.6' into develop
jackkav Jul 26, 2023
42adaef
Improve clarity of network proxy settings to include SOCKS4/5 proxy (…
hassanbenhzaine Jul 26, 2023
1e54dae
Chore/request-refactor-3 (#6201)
jackkav Jul 27, 2023
5dbb639
fix body and log (#6209)
jackkav Jul 28, 2023
97de811
Fix prerelease smoke test flake (#6210)
jackkav Jul 28, 2023
4c46308
v3.19.0-beta.6
jackkav Jul 27, 2023
c4e702a
Bump app version to 2023.5.0-beta.7 and lerna package versions
jackkav Jul 27, 2023
5590f9f
Merge branch 'release/2023.5.0-beta.7' into develop
jackkav Jul 28, 2023
9acc8cb
copy workspace setting to context menu (#6187)
jackkav Jul 28, 2023
0dd87bb
v3.19.0-beta.7
jackkav Jul 28, 2023
ba1516f
Bump app version to 2023.5.0-beta.8 and lerna package versions
jackkav Jul 28, 2023
96ae437
Merge branch 'release/2023.5.0-beta.8' into develop
jackkav Jul 28, 2023
9776034
feat: gRPC request stubs (#6196)
nbgraham Aug 1, 2023
70656f0
Tailwind (#6189)
gatzjames Aug 1, 2023
0f0d41f
feat/SEC-921: edit the dyld env variables and library validation for …
filfreire Aug 1, 2023
70add78
fix ordering (#6222)
jackkav Aug 3, 2023
52e969d
response routing (#6214)
jackkav Aug 4, 2023
454319f
remove redux (#6225)
jackkav Aug 4, 2023
baf87a1
fix windows ci flake (#6226)
jackkav Aug 4, 2023
3bc1f6e
v3.19.0-beta.8
jackkav Aug 4, 2023
78d0df6
Bump app version to 2023.5.0-beta.9 and lerna package versions
jackkav Aug 4, 2023
c31f0a1
Merge branch 'release/2023.5.0-beta.9' into develop
jackkav Aug 4, 2023
a8e436e
fix prerelease tests
jackkav Aug 4, 2023
b9c7096
use upstream rather than fork (#6230)
jackkav Aug 5, 2023
c46a9e4
sync: fix the broken history snapshot "restore" functionality by impo…
DannyHinshaw Aug 8, 2023
cf7e779
v3.19.0-beta.9
jackkav Aug 8, 2023
0e1e0e8
Bump app version to 2023.5.0-beta.10 and lerna package versions
jackkav Aug 8, 2023
7aca386
Merge branch 'release/2023.5.0-beta.10' into develop
jackkav Aug 8, 2023
b19f69a
Bump/typescript-5 (#6238)
jackkav Aug 8, 2023
4bf257c
fix (#6236)
jackkav Aug 8, 2023
9800ad5
chore: use npm workspaces (herecles) (#6193)
filfreire Aug 9, 2023
001a88a
setup new versioning for release-start (#6244)
filfreire Aug 10, 2023
2ceaa1e
fix release-build trigger (#6246)
filfreire Aug 10, 2023
311908c
fix release pipeline
filfreire Aug 10, 2023
c7aa710
fix release-build trigger
filfreire Aug 10, 2023
61ef20c
fix release-build trigger
filfreire Aug 10, 2023
5bd2fa1
Bump app version to 2023.5.0-beta.11
filfreire Aug 10, 2023
1b3dab6
Merge branch 'release/2023.5.0-beta.11' into develop
jackkav Aug 10, 2023
175921e
Chore/fix-install-warnings (#6243)
jackkav Aug 10, 2023
5502c4e
fix lint
jackkav Aug 10, 2023
42a6271
Bump app version to 2023.5.0-beta.12
jackkav Aug 10, 2023
bfa55f2
Merge branch 'release/2023.5.0-beta.12' into develop
jackkav Aug 10, 2023
7b3d04c
chore: smoketests ubuntu only (#6255)
filfreire Aug 10, 2023
bdb6731
fix? (#6258)
jackkav Aug 10, 2023
3fbd5a4
add inso/node-libcurl cli docs (#6256)
jackkav Aug 10, 2023
96011e8
add critical smoke tests to avoid broken beta deploy (#6259)
jackkav Aug 11, 2023
8795370
git sync ux add->authenticate (#6260)
jackkav Aug 11, 2023
ee6a424
Return error response from axios (#6261)
gatzjames Aug 11, 2023
1a96880
turn repo and status loaders to actions to control when they run (#6262)
gatzjames Aug 11, 2023
887f4c5
mmm listening for active response change (#6263)
jackkav Aug 11, 2023
94d035b
add dropdown item (#6264)
jackkav Aug 11, 2023
f9bd4ff
fix: http request loading indicator (#6265)
jackkav Aug 13, 2023
b58cd5f
Bump app version to 2023.5.0-beta.13
jackkav Aug 14, 2023
c4728cb
Merge branch 'release/2023.5.0-beta.13' into develop
jackkav Aug 14, 2023
3eedddc
autocomplete revision (#6220)
jackkav Aug 14, 2023
bd23cfe
fix rerenders (#6272)
jackkav Aug 14, 2023
6b5fcba
Fix/prerelease-tests (#6273)
jackkav Aug 14, 2023
c4cd2c2
Bump app version to 2023.5.0
jackkav Aug 14, 2023
0f2b527
Merge branch 'release/2023.5.0' into develop
jackkav Aug 14, 2023
f8c8ee1
Fix/response-hook-plugin-exception (#6280)
jackkav Aug 15, 2023
6711670
Bump app version to 2023.5.1
jackkav Aug 15, 2023
e15a8b5
Merge branch 'release/2023.5.1' into develop
jackkav Aug 15, 2023
917905e
fix httpsnippet validation error (#6283)
jackkav Aug 15, 2023
cd839da
Bump app version to 2023.5.2
jackkav Aug 15, 2023
e87e500
Merge branch 'release/2023.5.2' into develop
jackkav Aug 15, 2023
9f6e2f3
UI improvements (#6270)
gatzjames Aug 15, 2023
8b642ea
Fix right click to show request actions (#6275)
ASchwad Aug 15, 2023
8ad5682
fix reqtree bug (#6289)
jackkav Aug 15, 2023
2d3e4e4
Paste from Curl (#6295)
jackkav Aug 16, 2023
360abe2
Bump app version to 2023.5.3
jackkav Aug 16, 2023
5b9572b
Merge branch 'release/2023.5.3' into develop
jackkav Aug 16, 2023
3d4c4dd
fix (#6303)
jackkav Aug 16, 2023
7ba00d5
reduce loading rerenders
jackkav Aug 16, 2023
74960ec
fix cert update route url bug (#6311)
jackkav Aug 17, 2023
f83ccbb
Fix/prerelease-tests (#6314)
jackkav Aug 17, 2023
32394fb
fix array length check (#6320)
jackkav Aug 18, 2023
5ecc3ab
Fix/prerelease-tests-again (#6322)
jackkav Aug 18, 2023
8fa8b9b
fix export from outside workspace (#6307)
jackkav Aug 18, 2023
e4b443f
Bump app version to 2023.5.4
jackkav Aug 17, 2023
b9cf954
Merge branch 'release/2023.5.4' into develop
jackkav Aug 18, 2023
bec4e82
hasrun (#6325)
jackkav Aug 18, 2023
97e21a2
fix: #6304 git clone collections (#6333)
filfreire Aug 18, 2023
88c7277
add folder duplicate (#6337)
jackkav Aug 18, 2023
d8d8dcd
Bump app version to 2023.5.5
jackkav Aug 18, 2023
646e645
Merge branch 'release/2023.5.5' into develop
jackkav Aug 18, 2023
6c8c12b
clarify update message (#6347)
jackkav Aug 21, 2023
59c07bc
fix: #6334 updating requestgroup caused render error (#6342)
filfreire Aug 22, 2023
15edd95
UI improvements - Debug Sidebar - drag and drop sort and filter (#6323)
gatzjames Aug 22, 2023
a7cf5a7
fallback to create (#6352)
jackkav Aug 22, 2023
22e9a1a
fix stale env list on updates (#6357)
gatzjames Aug 22, 2023
4c7a49c
Bump app version to 2023.5.6
jackkav Aug 22, 2023
d582903
fix missing github actions
jackkav Aug 22, 2023
e8cb689
add team id
jackkav Aug 22, 2023
af6563d
Merge branch 'release/2023.5.6' into develop
jackkav Aug 23, 2023
375832f
match up with request duplicate (#6362)
jackkav Aug 23, 2023
6075f15
fix: render fail on workspace dropdown in req group settings (#6350)
filfreire Aug 24, 2023
4f58f71
Fix: #6368 re-add color to request methods (#6376)
filfreire Aug 24, 2023
606439a
fix env color (#6377)
jackkav Aug 24, 2023
4b1bc6f
fix failed backup (#6386)
jackkav Aug 24, 2023
5407006
Paste curl modal (#6384)
jackkav Aug 25, 2023
7e3e44c
backup second pass (#6388)
jackkav Aug 25, 2023
8103927
Project route UI improvements (#6400)
gatzjames Aug 28, 2023
df77275
chore: Add test to check for backups on new version to critical tests…
filfreire Aug 28, 2023
98e292d
fix scope navigation (#6408)
gatzjames Aug 29, 2023
a35e99b
fix invariant exception (#6410)
jackkav Aug 29, 2023
a9f32d9
update to document rename tests (#6413)
gatzjames Aug 29, 2023
00ef2e8
Revalidate only when orgs change (#6409)
gatzjames Aug 29, 2023
38cc96e
fix plugin install with deps bug (#6414)
jackkav Aug 29, 2023
fd3ea77
add gql shorthand (#6417)
jackkav Aug 29, 2023
350fc47
Fix processing of DOM nodes during the production build (minified nam…
featherbear Aug 30, 2023
56e8f36
Test/move-to-smoke (#6420)
jackkav Aug 30, 2023
b86dff5
move tsx out of main (#6422)
jackkav Aug 30, 2023
345eb49
Move organizations data fetching outside of root (#6423)
gatzjames Aug 30, 2023
8221803
Merge branch 'develop' into fix/issue-5692 (#5941)
u1aryz Aug 30, 2023
15e99db
Bump app version to 2023.5.7
jackkav Aug 29, 2023
988bb22
Merge branch 'release/2023.5.7' into develop
jackkav Aug 30, 2023
0ab5809
fix templating xml query (#6428)
jackkav Aug 30, 2023
338dfc9
fallback to insomnia user agent (#6429)
jackkav Aug 31, 2023
dfdbb3b
add patch (#6433)
jackkav Aug 31, 2023
5132452
Fix/improved-git-sync-errors (#6446)
jackkav Sep 5, 2023
2e5b963
re add user-agent (#6436)
jackkav Sep 5, 2023
81a8d63
optimise fs reads
jackkav Sep 6, 2023
56ce34d
cache database on client
jackkav Sep 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
**/dist
**/.git
**/.github
screenshots
traces
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.idea/
.github/
docker/
screenshots/
traces/
**/*.min.js
**/build/
**/dist/
Expand Down
24 changes: 11 additions & 13 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,11 @@ const {
module.exports = {
settings: {
react: {
version: '17.0.2', // note: remember to always keep this in sync with `"react": "^17.0.2",` which is present in any package.json of a project using React.
version: 'detect',
},
},
parser: '@typescript-eslint/parser',
parserOptions: {
project: [
'./tsconfig.eslint.json',
'./packages/*/tsconfig.json',
'./plugins/*/tsconfig.json',
],
tsconfigRootDir: __dirname,
ecmaFeatures: {
jsx: true,
Expand Down Expand Up @@ -73,15 +68,12 @@ module.exports = {
'array-bracket-spacing': ERROR,
'brace-style': SUCCESSOR(TYPESCRIPT_EXTENSION),
'block-spacing': ERROR,
'camelcase': [ERROR, { allow: ['__export_format', '__export_date', '__export_source'] }],
'comma-dangle': [ERROR, 'always-multiline'],
'comma-spacing': ERROR,
'consistent-return': OFF('found to be too many false positives'),
'curly': ERROR,
'default-case': ERROR,
'default-case-last': ERROR,
'filenames/match-exported': [ERROR, 'kebab'],
'indent': [ERROR, 2, { SwitchCase: 1 }],
'eol-last': [ERROR, 'always'],
'eqeqeq': [ERROR, 'smart'],
'arrow-parens': [ERROR, 'as-needed'],
Expand Down Expand Up @@ -113,17 +105,15 @@ module.exports = {
],
}],

'react/no-find-dom-node': OFF(UNKNOWN),
'react/no-unescaped-entities': OFF(TYPESCRIPT_CONVERSION),
'react/jsx-first-prop-new-line': [ERROR, 'multiline'],
'react/jsx-max-props-per-line': [ERROR, { maximum: 1, when: 'multiline' }],
'react/jsx-uses-react': ERROR,
'react/jsx-uses-vars': ERROR,
'react/jsx-indent': [ERROR, 2],
'react/jsx-indent-props': [ERROR, 2],
'react/prop-types': OFF(UNKNOWN),
'react/function-component-definition': [ERROR, {
'namedComponents': 'arrow-function',
'namedComponents': 'arrow-function',
'unnamedComponents': 'arrow-function',
}],
'react/jsx-closing-bracket-location': [ERROR, 'line-aligned'],
Expand All @@ -150,11 +140,19 @@ module.exports = {
'@typescript-eslint/no-namespace': [ERROR, { allowDeclarations: true }],
'@typescript-eslint/no-redeclare': ERROR,
'@typescript-eslint/no-unused-vars': [ERROR, { ignoreRestSiblings: true }],
'@typescript-eslint/no-use-before-define': ERROR,
'@typescript-eslint/space-infix-ops': ERROR,
'@typescript-eslint/semi': [ERROR, 'always'],
'@typescript-eslint/quotes': [ERROR, 'single', { avoidEscape: true }],

'simple-import-sort/imports': ERROR,
'filenames/match-exported': OFF(UNKNOWN),
camelcase: OFF(UNKNOWN),
'@typescript-eslint/no-use-before-define': OFF(TYPESCRIPT_CONVERSION),
'@typescript-eslint/no-explicit-any': OFF(TYPESCRIPT_CONVERSION),
'react/no-find-dom-node': OFF(UNKNOWN),
'no-restricted-properties': [ERROR, {
property: 'openExternal',
message: 'use the `window.main.openInBrowser` function instead. see https://security.stackexchange.com/questions/225799/dangers-of-electrons-shell-openexternal-on-untrusted-content for more information.',
}],
},
};
12 changes: 7 additions & 5 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:

jobs:
parse-version:
if: "startsWith(github.head_ref, 'release/') || github.event_name == 'workflow_dispatch'"
if: ${{ startsWith(github.head_ref, 'release/') || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
Expand All @@ -29,7 +29,7 @@ jobs:
echo "RELEASE_VERSION=${{ github.event.inputs.version }} " >> $GITHUB_ENV

- name: Set release version Env (pull_request)
if: "startsWith(github.head_ref, 'release/')"
if: ${{ startsWith(github.head_ref, 'release/') }}
shell: bash
run: |
echo "RELEASE_VERSION=${BRANCH/release\//} " >> $GITHUB_ENV
Expand Down Expand Up @@ -152,10 +152,12 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
node-version-file: ".nvmrc"
cache: 'npm'
cache-dependency-path: package-lock.json

- name: Bootstrap packages
run: npm run bootstrap
- name: Install packages
run: npm ci

- name: Run changelog-image
run: npm run changelog-image
Expand Down
21 changes: 14 additions & 7 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ jobs:
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache-dependency-path: package-lock.json

- name: Bootstrap packages
run: npm run bootstrap
- name: Install packages
run: npm ci

- name: Package app (MacOS only)
if: matrix.os == 'macos-latest'
Expand All @@ -60,7 +62,10 @@ jobs:
echo "INSO_VERSION=$(jq .version packages/insomnia-inso/package.json -rj)" >> $GITHUB_ENV

- name: Package inso
run: npm run inso-package
run: |
echo "Replacing electron binary with node binary"
node_modules/.bin/node-pre-gyp install --update-binary --directory node_modules/@getinsomnia/node-libcurl
npm run inso-package
env:
VERSION: ${{ env.INSO_VERSION }}

Expand All @@ -79,27 +84,29 @@ jobs:

- name: Notarize Inso CLI installer (macOS only)
if: matrix.os == 'macos-latest'
uses: devbotsxyz/xcode-notarize@v1
uses: lando/notarize-action@v2
with:
product-path: packages/insomnia-inso/artifacts/inso-${{ matrix.os }}-${{ env.INSO_VERSION }}.pkg
primary-bundle-id: com.insomnia.inso
appstore-connect-username: ${{ secrets.DESIGNER_APPLE_ID }}
appstore-connect-password: ${{ secrets.DESIGNER_APPLE_ID_PASSWORD }}
appstore-connect-team-id: FX44YY62GV

- name: Staple Inso CLI installer (macOS only)
if: matrix.os == 'macos-latest'
uses: devbotsxyz/xcode-staple@v1
uses: BoundfoxStudios/action-xcode-staple@v1
with:
product-path: packages/insomnia-inso/artifacts/inso-${{ matrix.os }}-${{ env.INSO_VERSION }}.pkg

- name: Notarize Inso CLI binary (macOS only)
if: matrix.os == 'macos-latest'
uses: devbotsxyz/xcode-notarize@v1
uses: lando/notarize-action@v2
with:
product-path: packages/insomnia-inso/binaries/inso
primary-bundle-id: com.insomnia.inso-binary
appstore-connect-username: ${{ secrets.DESIGNER_APPLE_ID }}
appstore-connect-password: ${{ secrets.DESIGNER_APPLE_ID_PASSWORD }}
appstore-connect-team-id: FX44YY62GV

- name: Create inso artifacts
run: npm run inso-package:artifacts
Expand Down Expand Up @@ -176,7 +183,7 @@ jobs:
git merge --no-ff release/<replaced with version>

# Solve merge conflicts ...
# If there's package-lock conflicts, run `npm run bootstrap` and commit the package-lock changes
# If there's package-lock conflicts, run `npm install` and commit the package-lock changes

git push
```
Expand Down
21 changes: 14 additions & 7 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
node-version-file: ".nvmrc"
cache: 'npm'
cache-dependency-path: package-lock.json

- name: Bootstrap packages
run: npm run bootstrap
- name: Install packages
run: npm ci

- name: Download artifact
uses: dawidd6/action-download-artifact@v2
Expand Down Expand Up @@ -164,22 +166,27 @@ jobs:
snap: artifacts/ubuntu-latest-artifacts/insomnia/dist/Insomnia.Core-${{ env.RELEASE_VERSION }}.snap
release: ${{ contains(github.event.inputs.version, 'beta') && 'beta' || 'stable' }}

- name: Upload .deb to pulp (stable only)
if: ${{ env.IS_PRERELEASE == 'false' }}
- name: Upload .deb to pulp and/or cloudsmith (stable only)
uses: docker://kong/release-script:latest
env:
PULP_USERNAME: ${{ secrets.PULP_USERNAME }}
PULP_PASSWORD: ${{ secrets.PULP_PASSWORD }}
PULP_HOST: ${{ secrets.PULP_HOST }}
VERBOSE: ${{ runner.debug == '1' && '1' || '' }}
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
CLOUDSMITH_DRY_RUN: ''
IGNORE_CLOUDSMITH_FAILURES: ${{ vars.IGNORE_CLOUDSMITH_FAILURES }}
USE_CLOUDSMITH: ${{ vars.USE_CLOUDSMITH }}
USE_PULP: ${{ vars.USE_PULP }}
with:
entrypoint: /usr/src/code/entrypoint.sh
entrypoint: /entrypoint.sh
args: >
release
--file artifacts/ubuntu-latest-artifacts/insomnia/dist/Insomnia.Core-${{ env.RELEASE_VERSION }}.deb
--dist-name ubuntu
--dist-version focal
--package-type insomnia
--publish
${{ env.IS_PRERELEASE == 'true' && '--internal' || '--publish' }}

- name: Push Inso CLI docker image tags to Docker Hub
run: |
Expand Down
22 changes: 18 additions & 4 deletions .github/workflows/release-recurring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:
jobs:
build-and-upload-artifacts:
# Skip jobs for release PRs
if: "!startsWith(github.head_ref, 'release/')"
if: ${{ !startsWith(github.head_ref, 'release/') }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -38,18 +38,32 @@ jobs:
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: 'npm'
cache-dependency-path: package-lock.json

- name: Bootstrap packages
run: npm run bootstrap
- name: Install packages
run: npm ci

- name: Bump version
shell: bash
run: BUILD_REF="$(git rev-parse --short HEAD)${{ github.event_name == 'pull_request' && '.pr-$PR_NUMBER' || '' }}" npm run app-bump-version
run: npm --workspaces version prerelease --preid="$(git rev-parse --short HEAD)${{ github.event_name == 'pull_request' && '.pr-$PR_NUMBER' || '' }}" --no-git-tag-version

- name: Package
shell: bash
run: NODE_OPTIONS='--max_old_space_size=6144' BUILD_TARGETS='${{ matrix.build-targets }}' npm run app-package

- name: Test critical path on packaged electron app
run: npm run test:package -w packages/insomnia-smoke-test -- --project=Critical
env:
INSOMNIA_UPDATES_URL: http://localhost:4010

- name: Upload smoke test traces
uses: actions/upload-artifact@v3
with:
if-no-files-found: ignore
name: ${{ matrix.os }}-package-critical-test-traces-${{ github.run_number }}
path: packages/insomnia-smoke-test/traces

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
Loading
Loading