Commit graph

200 commits

Author SHA1 Message Date
Seif Soliman
ec6e76b12e
chore: fix typo in issue template (@byseif21) (#6613) 2025-06-04 10:59:44 +02:00
Christian Fehmer
19930a9079
docs: update PR template (@fehmer) (#6600) 2025-05-26 16:05:09 +02:00
Christian Fehmer
be62681c32
docs: update pull request template (@fehmer) (#6538) 2025-05-07 15:48:13 +02:00
Nad Alaba
6686834eeb
chore(workflows): use correct name of action input (@NadAlaba) (#6378)
change the name of the input action that should've been changed in #6344
when the action was changed.
Sorry!
2025-03-17 16:30:41 +01:00
Miodec
a94a6db75a ci: use full_name instead 2025-03-17 14:10:42 +01:00
Miodec
44955bf750 ci: pretty fix fix attempt 2025-03-17 14:07:40 +01:00
Christian Fehmer
b7c4166ab6
ci: fix prettier workflow (@fehmer) (#6371)
fixes
https://github.com/monkeytypegame/monkeytype/actions/runs/13846153945/job/38746363714#step:7:58
2025-03-17 13:53:57 +01:00
Nad Alaba
2e1c7eb967
chore(workflows): use specific version of add-remove-label-action (@NadAlaba) (#6368)
revert fixing major version only of the
`PauMAVA/add-remove-label-action` action from #6344 because this action
does not have a `v1` tag

Co-authored-by: Christian Fehmer <fehmer@users.noreply.github.com>
2025-03-17 12:20:25 +01:00
Nad Alaba
195b9d8402
chore(workflows): update deprecated action and remove duplicate workflow message (@NadAlaba) (#6344)
### Description

1. remove duplicate correct examples in semantic-pr-title error message,
and make the examples more diverse (show how to credit multiple
contributors).

![patternMessage](https://github.com/user-attachments/assets/cb6afe48-ed67-4894-ab4a-76894dd50e3b)

2. make the scope (quotes, languages, ...) consistently plural across
the repo docs (A subjective change I know, but in the changelog, the
scope looks better when it is plural i.e. **quotes:** add various
quotes).
3. update deprecated action `upload-artifact` from v3 to v4, because it
was making the `ci-failure-comment` workflow fail.
> Error: This request has been automatically failed because it uses a
deprecated version of `actions/upload-artifact: v3`. Learn more:
https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
4. use the same official action to download and upload artifacts across
the repo's workflows.
5. add 'waiting for update' and remove 'waiting for review' labels when
the Monkey CI workflow fails.
6. fix actions' major version only, to allow minor updates and patches.
2025-03-12 16:35:58 +01:00
Christian Fehmer
572de8a247
chore: fix version in docker publish workflow (@fehmer) (#6339) 2025-03-12 16:08:10 +01:00
Christian Fehmer
f80dde4c89
chore(self hosting): run selfhosted backend in prod mode (@fehmer) (#6326)
Co-authored-by: Miodec <jack@monkeytype.com>
2025-03-03 17:43:08 +01:00
Miodec
7d7118f744 ci: anticheat shouldnt block ci if force ci labels are present 2025-03-03 16:16:18 +01:00
Jack
00e130969a
ci: move prettier to its own workflow (@miodec) (#6198)
Add pretty fix step if pretty check failed.

---------

Co-authored-by: Miodec <13181393+Miodec@users.noreply.github.com>
2025-01-27 13:47:48 +01:00
Miodec
bb3a99861f ci: fix permission 2025-01-23 21:54:50 +01:00
Miodec
b4d8a5f965 ci: update permissions 2025-01-23 21:44:26 +01:00
Miodec
bbf0aa65b7 ci: use different action for removing label 2025-01-23 21:39:02 +01:00
Miodec
e10444d201 ci(pretty fix): use correct head ref 2025-01-23 21:31:39 +01:00
Miodec
e4517ebede ci: run pretty fix only on changed files 2025-01-23 21:27:12 +01:00
Miodec
90590a331d ci: run prettier write on pr label change 2025-01-23 21:15:53 +01:00
Christian Fehmer
c469ddddff
ci: limit permissions for the update labels workflow (@fehmer) (#6200) 2025-01-22 16:19:32 +01:00
Christian Fehmer
fc6564289c
ci: Limit permissions for the docker publish workflow (@fehmer) (#6199) 2025-01-22 15:36:00 +01:00
dependabot[bot]
4ccc7fee0d
chore(deps): bump dawidd6/action-download-artifact from 2.11.0 to 6 (@dependabot) (#6073) 2024-11-26 18:39:45 +01:00
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
Miodec
32a3d19779 revert: set dependabot to use pnpm
This reverts commit 4ccbdb16f1.
2024-08-14 13:34:05 +02:00
Miodec
4ccbdb16f1 chore: set dependabot to use pnpm 2024-08-14 13:30:24 +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
Christian Fehmer
c856cf12f8
ci: configure dependabot (@fehmer) (#5642) 2024-07-24 12:04:08 +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