Commit graph

94 commits

Author SHA1 Message Date
Christian Fehmer
b06b9f73e5
refactor: rework rate limiting (@fehmer) (#5845)
!nuf
2024-09-09 10:39:08 +02:00
Nad Alaba
6a24dbb986
chore(PR labeler): fix workflow having read access only, when triggered from forks (@NadAlaba) (#5842)
* chore(PR labeler): fix workflow having read access only when triggered from forks (@NadAlaba)

* remove logging and add an example with scope

* use action instead of gh cli for security

* use action to read json (instead of echoing contents in shell) for security

* step.if needs the same variables

* don't let attacker choose the labels

* step.name starts in caps

* no need for variable if it's used once
2024-09-05 13:44:23 +02:00
Sanidhya Singh
1ba4be38d0
impr(PR labels): automatically label PRs "waiting for review/update" (@sanidhyas3s) (#5830)
!nuf
2024-08-29 14:17:04 +02:00
Jack
945db7d20c
impr(ci): add ability to run ci on draft pull requests (@miodec) (#5791)
* force ci

* trigger

* add force full ci

* blah

* full

* remove trigger
2024-08-15 00:49:34 +02:00
Christian Fehmer
ffb04f2af5
ci: skip semantic pr title for dependabot (@fehmer) (#5786) 2024-08-15 00:23:17 +02:00
Christian Fehmer
f92c1023bb
ci: skip semantic pr title for dependabot (@fehmer) (#5776) 2024-08-14 12:05:13 +02:00
Christian Fehmer
b484d1545a
ci: fix prettier failing on removed files (@fehmer) (#5742) 2024-08-08 13:05:07 +02:00
Christian Fehmer
6c18504c83
ci: skip full checkout on pre-ci on pull requests (@fehmer) (#5738)
* ci: skip full checkout on pre-ci on pull requests (@fehmer)

* review comments

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-08-06 12:12:23 +02:00
Christian Fehmer
ffacc0a5f2
ci: skip cache download on prime-cache job (@fehmer) (#5737) 2024-08-06 11:58:52 +02:00
Miodec
749f2af10b fix(ci): errors when running on push
all files will be prettified now when running on push, only changed when running on PR

!nuf
2024-08-05 20:23:16 +02:00
Jack
3568818b44
ci: run time improvements (@miodec) (#5730)
* rebuild trigger

* sparse checkout

* trigger

* triggeeeer

* fix syntax

* checkout

* revert triggers

* build fail

* revert fail

* prettier on changed files

* prettier trigger?

* missing step, missing packages checkout

* broken prettier

* prettier fix

* revert

* remove unused steps

* only install prettier for the prettier step

* trigger

* revert

* be trigger

* exact version

* v7

* revert
2024-08-05 16:24:34 +02:00
Christian Fehmer
c6550eb8df
impr(ci): verify pr titles include author name (@rizwanmustafa) (#5707)
!nuf
2024-08-01 12:48:12 +02:00
Jack
2720c07664
chore: switch from npm to pnpm (#5690)
* pnpm

* v4, pnpm lock

* checkout, node setup

* cache dir

* path, name

* store path

* name

* setup pnpm, get store then check cache

* unnecessary if

* missing dependencies

* fix docker

* lock file name

* remove prop

* wip

* fix

* reduce image sizes

* save exact

* correct command

* lock

---------

Co-authored-by: Christian Fehmer <cfe@sexy-developer.com>
2024-07-30 22:36:19 +02:00
Jack
1110248f7b
chore: upgrade node to 20.16.0 (#5688)
* nooOoOoOOoOoode

* ci

* nvm

* env is back baby, cache

* cache name, restore keys

* remove restore keys

* package lock

* conditional node setup

* unnecessary assertion

* update rule

* lock
2024-07-30 18:44:35 +02:00
Christian Fehmer
df8d799781
ci: build fe/be if packages changed (@fehmer) (#5674)
* ci: build fe/be if packages changed (@fehmer)

Changes in the contracts should trigger be/fe builds

* trigger

* trigger
2024-07-30 12:09:10 +02:00
Jack
6554f0b2a9
ci: move pretty check to one job, stop the rest of the ci from running when prettier errors (#5670)
* move prettier to a separate job, write fixes

* remove from assets

* break formatting

* fix ci

* remove exit

* typo

* ci

* permission

* use a different action

* Fix prettier

* commit author

* break formatting

* Fix prettier

* unnecessary ref, remove comments

* commit message

* split steps

* break fe

* break fe src

* fix if

* fix prettier

* remove write

* rename job

* break fe

* revert permission change

* fix

* rename scripts

---------

Co-authored-by: Miodec <Miodec@users.noreply.github.com>
Co-authored-by: George The Bot <monkeytypegeorge@gmail.com>
2024-07-28 14:15:11 +02:00
Jack
daa930bcd8
ci: add prettier check in the assets job (#5668)
* Update _groups.json

test

* check pretty in assets step

* fix indentation
2024-07-28 11:32:53 +02:00
Christian Fehmer
ed4b072065
ci: optimize prime-cache checkout (@fehmer) (#5657)
* ci: optimize prime-cache checkout (@fehmer)

* capital c

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-07-26 13:18:42 +02:00
Jack
1d8930cb0d
docs: move files to docs folder (#5654)
* docs

* fix links
2024-07-25 18:21:20 +02:00
Jack
ac0e24e388
perf(ci): cache dependencies (#5653)
* add dependency cache

* ci trigger

* ci

* run scripts, no clean, ci trigger

* assets

* missing dependency

* ci, trigger

* trigger

* a

* typos

* ci

* flags

* ci

* trigger

* needs pre-ci

* ci, trigger

* v4, trigger

* update action versions

* revert test changes
2024-07-25 13:49:18 +02:00
Jack
3e88ac2f12
refactor: restructure project to a true monorepo (#5626)
* split ts files

* packages

* nomore workspace?

* blah

* build, exports

* declaration

* blargh

* turrrrbo

* fix fontawesome paths

* allow file in eslint, fix ts errors

* optimise package, update tsconfig

* fix ts

* update turbo config

* eslint split

* fix imports

* fix types

* lock

* add turbo task

* script

* test task

* pretty scripts

* update prettier ignore

* no cache for tests

* lint task

* turbo

* no out

* depend on env

* fix mono breaking things

* odl

* fix version dependency of mongodb-memory-server

* Revert "fix version dependency of mongodb-memory-server"

This reverts commit 52ffac47b1.

* update vitest-mongodb

* release scripts

* update ci

* update dev script

* ignore issues around firebase config

* add check ts tasks

* import isaxioserror

* shared types package

* replace tsnodedev with tsx

* fix import

* shared types

* module

* backend imports

* declaration

* node version

* test code

* assert json

* verbatim

* type

* lodash

* ts ver

* fix fix fix?

* remove assert

* remove module and resolution

* cleanup

* tsconfig

* fix frontend

* remove unecessary props

* more unused

* remove skiplib

* declaration map, dev script

* remove install scripts

* fix regex

* move shared types to package

* dont include shared types

* remove path

* update scripts

* test code

* test code

* fix backend types

* fully fix backend

* fix frontend d.ts

* add .js to imports

* remove module

* revert add .js

* update tsconfig

* use bundler module resolution

* almost all frontend types

* mooore

* date fns

* fix backend docker

* fix ape keys

* fix type

* clean rimraf type

* fix shared-types in workspace

* fix import resolving

* fix docker builds

* ignore type problems on slim-select until new version is released

* turrrrbo

* fix npm ci

* fix lint task

* expose env variables needed by frontend build

* fix dependencies

* package-lock

* backend watch ts and lint

* add fe and be build scripts to root

* fix dev not building packages

* shared-types missing eslint

* move shared types back to dev-deps

* add packages to labeler

* add packages step to ci

* typo

* filter update

* remove concurrently from root

* add scripts

* abbreviate

* rename

* yeet

* fixed path

* test pkg

* consistent ordering

* rename

* Revert "backend imports"

This reverts commit d715198829.

* fix missing imports, remove last .js

* remove test package

---------

Co-authored-by: Christian Fehmer <cfe@sexy-developer.com>
2024-07-22 15:08:11 +02:00
Christian Fehmer
29627fd0d5
ci: update ci-failure-comment workflow (@fehmer) (#5632) 2024-07-20 01:09:14 +02:00
Jack
8f4d291fcf
Revert "impr: use tsrest/zod for type-safety on both ends (@fehmer) (#5479)" (#5619)
This reverts commit 4c9e949f10.
2024-07-16 17:29:09 +02:00
Christian Fehmer
4c9e949f10
impr: use tsrest/zod for type-safety on both ends (@fehmer) (#5479)
!nuf
2024-07-16 15:24:06 +02:00
Christian Fehmer
0dab2ecd7e
impr: build docker images for linux/arm64 on release (#5369)
!nuf
2024-05-13 11:53:46 +02:00
Christian Fehmer
9432602727
impr: add selfhosting using docker only (fehmer) (#5170)
* impr: add selfhosting using docker only

* add recaptcha config and docs

* add documentation on the backend-configuration.json file, remove ---redacted--- from example config

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-03-12 12:02:13 +01:00
Miodec
2413fbaa4c ci: add recaptcha site key 2024-02-27 01:08:38 +01:00
Miodec
9e6b5c7ede ci: define types 2024-02-26 14:34:55 +01:00
Jack
8f6bfbb708
build: replace webpack with vite (#5096) 2024-02-22 02:24:20 +01:00
Christian Fehmer
6cf2e4f5f5
chore: update node version to 18.19.1 (#5060) 2024-02-15 21:23:29 +01:00
Miodec
b69f057da6 only if not draft 2024-02-01 23:22:19 +01:00
Christian Fehmer
6aa7a72727
test: configure testing for frontend code (fehmer) (#4879)
* test: configure testing for frontend code

* remove test coverage thresholds, cleanup
2024-01-08 15:26:57 +01:00
Aaron
be641e2974
fix(ci): update formatting workflow commit message (unrealapex) (#4852)
* Renamed command line setting timer-progress bar

* Make account config input an `input` so it takes up less space

* Revert "Make account config input an `input` so it takes up less space"

* fix(ci): update formatting workflow commit message

ensure that commit message meets conventional commits specification

* tweak(ci): fix commit type

---------

Co-authored-by: Aaron <79121360+hazyboba@users.noreply.github.com>
2023-12-11 19:31:30 +01:00
K.B.Dharun Krishna
fe8699399c
build(ci): bump actions/checkout to v4 (kbdharun) (#4645)
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-09-21 12:05:06 +01:00
Bruce Berrios
2bae227b63 chore: Prettier fix node 18 (Bruception) (#4533)
* fix: spelling mistakes in Nepali wordlist and quotes (#4528)

* fix spelling mistakes

* fix spelling mistakes in word list

* remove duplicates

* fix quote lengths

* chore: disable commitlint in commit-msg hook

This should make life easier for new contributors.
PR names still have to follow the convention though.
This check still runs on master on the main repo.

* node 18

---------

Co-authored-by: sapradhan <sapradhan@users.noreply.github.com>
Co-authored-by: Miodec <jack@monkeytype.com>
2023-08-14 14:27:00 +02:00
Miodec
3981caba40 ci: update node version 2023-08-10 23:44:14 +02:00
Miodec
5eea3a261e ci: update job name 2023-08-10 23:38:04 +02:00
Miodec
559cef6b52 ci: add action to validate pr titles 2023-08-10 23:34:50 +02:00
Bruce Berrios
fa32e08c0e
Upgrade actions in workflows (#4232) 2023-04-30 11:20:09 -04:00
Bruce Berrios
dcb505e507
Fix on failure action (#3959)
* Fix on failure action

* Bad commit

* Use API token

* Another bad commit

* Fix bad commits
2023-01-27 21:07:08 -05:00
Jack
dc1b217cb9
Update monkey-ci.yml 2023-01-27 01:58:25 +01:00
Bruce Berrios
b2c75a11d4
Housekeeping (#3940)
* Housekeeping

* Early exit not needed
2023-01-25 11:50:30 +01:00
Bruce Berrios
e8e377ff62
House keeping (#3867) bruception
* Add comment for blind mode

* Maybe fix on failure job
2023-01-04 14:48:33 +01:00
Bruce Berrios
bdd6ce0ffa
Housekeeping (#3816)
* housekeeping

* bad commit

* fix bad
2022-12-08 14:46:17 +01:00
Bruce Berrios
89fa7dc25d
Add failed PR comment job (#3808) Bruception
* Add failed PR comment job

* test

* .

* test

* Download workflow artifact

* .

* test

* .

* test

* nice

* Fix typo
2022-12-07 23:02:13 +01:00
Bruce Berrios
4a56a31b07
Checkout monkey CI (#3807) 2022-12-05 19:07:06 +01:00
Bruce Berrios
46d7a78ffe
Add Monkey CI (#3799)
* Split PR checks

* Split Jobs

* Test

* Fix path check

* Use checkout

* Undo

* oh boy

* .

* .

* .

* .

* test

* .

* .

* .

* .

* .

* .

* .

* yay

* Remove jsonschema from global dep

* monkey ci

* .

* oops

* test

* .

* .

* .

* .

* .

* .

* .

* ayy

* add permissions
2022-12-05 18:52:15 +01:00
Bruce Berrios
5a0e8ae72e
Housekeeping (#3374) 2022-08-08 16:16:07 +02:00
Bruce Berrios
d9da78673e
Add git config (#3080) 2022-06-07 16:05:36 -05:00
Bruce Berrios
c15d0c1572
Fix prettier issues (#3078)
* Fix

* Pretty Workflow

* spacing fix

* oops

* Update base pretty script
2022-06-07 12:02:03 -04:00