Commit Graph

34 Commits

Author SHA1 Message Date
Abdullah Atta
de0bbff296 web: treat mac app store build specially 2022-09-28 12:13:37 +05:00
Abdullah Atta
5646b9249e desktop: ready app for mac store submission (#1057)
* desktop: add support for publishing to mac app store

* ci: add step for deployment to testflight

* ci: temporarily run build only on macos

* config: cache `build:desktop` output in nx

* ci: use `macos-12` instead of `macos-latest`

* ci: no need to install `jq`

* ci: build & deploy manually

* ci: set env_vars using `env` key

* ci: install packages before building

* ci: build electron bundle before deployment

* ci: install distribution signing cert

* web: disable app store offending stuff for macos

* ci: enable deployment to testflight

* ci: remove cert installation to keychain

* desktop: pass entitlement files through plutil

* ci: use a single cert for everything

* ci: fix altool command for uploading macOS package

* ci: use env_vars for apiKey & apiIssuer

* ci: install provisionprofile

* ci: install provisioning profile in `./apps/web/desktop` dir

* desktop: change bundleId to `org.streetwriters.notesnook`

* ci: deploy & build in separate steps

* ci: add jobs for linux & windows releasing

* ci: checkout repo before anything else

* ci: add `GH_TOKEN` to env & use ps syntax on windows

* ci: get app store versions only for mac app

* ci: correct order of steps

Co-authored-by: ammarahm-ed <ammarahmed6506@gmail.com>
2022-09-28 12:00:33 +05:00
Abdullah Atta
977e0fd1c1 ci: publish to snapcraft manually 2022-09-23 12:01:34 +05:00
Abdullah Atta
4b138a5d42 ci: use SNAPCRAFT_STORE_CREDENTIALS instead of --with for snapcraft auth 2022-09-23 11:35:17 +05:00
Abdullah Atta
8ee1ccbc2b ci: check for ubuntu for snapcraft installation instead of linux 2022-09-23 11:20:18 +05:00
Abdullah Atta
7b48499527 desktop: publish app to snapcraft 2022-09-23 11:13:35 +05:00
ammarahm-ed
c790275de3 ci: use github token for current repo 2022-09-22 14:33:59 +05:00
Abdullah Atta
2749d285e9 ci: GH_TOKEN -> GITHUB_TOKEN 2022-09-22 12:25:44 +05:00
ammarahm-ed
651c7ba180 ci: add secrets to workflow 2022-09-22 12:12:53 +05:00
Abdullah Atta
615ee0deba ci: add web app publish workflow 2022-09-22 12:08:36 +05:00
Abdullah Atta
6ae8738353 ci: add input to make releasing optional 2022-09-22 12:08:36 +05:00
Abdullah Atta
ba084aa5de ci: add desktop app publish workflow 2022-09-22 12:08:36 +05:00
Abdullah Atta
a36dae1d47 ci: use --prefer-offline to speed up builds 2022-09-21 14:11:28 +05:00
Abdullah Atta
6d75476e7c web: optimize tests by ~120% (#1018)
This is mainly done via sharding, caching & reducing total work:
1. `terser` is turned off when generating test build
2. `nx` distributed cache allows reusing build outputs
3. `playwright` sharding allows running tests in parallel

This can further be improved by using `swc` & `esbuild` during build
2022-09-21 14:01:32 +05:00
ammarahm-ed
47204d6dee Merge branch 'master' of https://github.com/streetwriters/notesnook 2022-09-21 09:30:20 +05:00
ammarahm-ed
6879dbcdf8 ci: add gh & playstore release 2022-09-21 09:30:08 +05:00
Ammar Ahmed
e5e965415d feat: realtime & auto sync for all users (#944) 2022-09-20 18:33:55 +05:00
ammarahm-ed
fb1b71475e ci: use scripts for build 2022-09-20 15:07:33 +05:00
ammarahm-ed
85a3b5f016 ci: add release commands 2022-09-20 14:45:41 +05:00
ammarahm-ed
8e2b7c4565 ci: rename workflow 2022-09-20 14:04:37 +05:00
ammarahm-ed
f2393b7f9a mobile: add publish workflow file 2022-09-20 13:59:26 +05:00
Abdullah Atta
0af7fa463d ci: use paths to all package-lock files for caching 2022-09-18 17:44:41 +05:00
Abdullah Atta
53ed42b028 ci: do not wrap user_password in single quotes 2022-09-16 09:04:20 +05:00
Abdullah Atta
0ae2c6cc17 ci: provide correct path for test-results dir 2022-09-16 00:31:03 +05:00
Abdullah Atta
78a5715757 ci: upload test results on failure for web.tests 2022-09-16 00:12:25 +05:00
Abdullah Atta
554e9758ed ci: update web.tests workflow to run the new test suite 2022-09-14 11:50:24 +05:00
Abdullah Atta
5e64e06f52 web: use npm ci instead of npm install 2022-09-09 16:04:04 +05:00
Abdullah Atta
53047f035e web: reduce tests flakiness 2022-09-09 15:42:52 +05:00
Abdullah Atta
cc36951b94 ci: add @notesnook/web e2e tests workflow 2022-09-09 12:12:17 +05:00
Abdullah Atta
f414b34d39 ci: add ats-diagnostics test for payments endpoint 2022-09-09 11:48:33 +05:00
Abdullah Atta
553752d947 ci: wrap PASSWORD env_var in single quotes 2022-09-09 00:37:05 +05:00
Abdullah Atta
23c5bca155 ci: allow running @notesnook/core tests workflow manually 2022-09-09 00:28:19 +05:00
Abdullah Atta
6171b95f01 ci: add credentials to env_vars pre running tests 2022-09-09 00:24:13 +05:00
Abdullah Atta
42c745088a ci: add @notesnook/core test workflow 2022-09-09 00:14:21 +05:00