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

Migrate content types into repo #676

Merged
merged 318 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
318 commits
Select commit Hold shift + click to select a range
0d300a6
Merge pull request #11 from xmtp/rygine/reply-content-type
rygine Jul 10, 2023
2d11afe
Add schema to Reaction content type
rygine Jul 14, 2023
08ce15d
Add changeset for publishing
rygine Jul 14, 2023
616a28b
Merge pull request #13 from xmtp/rygine/reaction-update
rygine Jul 14, 2023
584ffb7
release: version packages
github-actions[bot] Jul 14, 2023
21b650a
Merge pull request #14 from xmtp/changeset-release/main
rygine Jul 14, 2023
4c1c2f1
read receipt boilerplate
Jul 19, 2023
9ac8ce0
updated readme
Jul 19, 2023
2ad1d41
Add tests
rygine Jul 19, 2023
97674f5
removed unnecessary package
Jul 19, 2023
0c3e3d5
add dependency to replies
Jul 19, 2023
04b775b
add changeset
Jul 19, 2023
e39d866
Merge pull request #17 from xmtp/dj/read-receipts
daria-github Jul 19, 2023
7fe214d
release: version packages
github-actions[bot] Jul 19, 2023
428b388
updated to v1
Jul 19, 2023
f171970
Merge pull request #18 from xmtp/changeset-release/main
daria-github Jul 19, 2023
4ecabad
docs: update main readme and link to XIPs
jhaaaa Jul 20, 2023
7e4f76d
Merge pull request #19 from xmtp/updt-readme
jhaaaa Jul 20, 2023
2223cc6
docs: update discussion location
jhaaaa Jul 20, 2023
4f72afa
Merge pull request #20 from xmtp/xips-to-forum
jhaaaa Jul 20, 2023
6cb5ed8
fix: use type from the reply nested content directly
dmccartney Aug 4, 2023
68eea34
read receipt read me draft
Aug 9, 2023
786722b
addressed code comments
Aug 9, 2023
5887bf4
docs: some edits from jha
jhaaaa Aug 9, 2023
1c6a012
updated proposal link
Aug 10, 2023
e38035e
Merge pull request #22 from xmtp/dj/read-receipt-readme
daria-github Aug 10, 2023
f22ee24
updated changeset
Aug 14, 2023
1e39a49
Merge pull request #23 from xmtp/dj/read-receipt-readme
daria-github Aug 14, 2023
ea643c9
release: version packages
github-actions[bot] Aug 14, 2023
363e82c
Merge pull request #24 from xmtp/changeset-release/main
daria-github Aug 14, 2023
0c0c7aa
feat: add fallbacks to all the supported content types
nplasterer Aug 31, 2023
e71d72b
fix: normalize reaction encoding, support legacy form
dmccartney Sep 5, 2023
e7dc6d0
Fix lint issues
rygine Sep 5, 2023
2f3617b
Create lazy-bananas-pretend.md
rygine Sep 5, 2023
306037d
Merge pull request #26 from xmtp/daniel-fix-reaction-form
rygine Sep 5, 2023
ff523d7
release: version packages
github-actions[bot] Sep 5, 2023
bc3c75d
Update CHANGELOG.md
rygine Sep 5, 2023
ae4fcda
add changeset
Sep 5, 2023
8d9b324
Merge pull request #27 from xmtp/changeset-release/main
rygine Sep 5, 2023
b02a121
Fix lint errors
neekolas Sep 7, 2023
3c531b7
Add changeset
neekolas Sep 7, 2023
0c58847
Merge pull request #25 from xmtp/np/update-content-type-fallbacks
neekolas Sep 7, 2023
796a273
release: version packages
github-actions[bot] Sep 7, 2023
ab3f624
Merge pull request #28 from xmtp/changeset-release/main
neekolas Sep 7, 2023
3ad0b8b
Merge pull request #21 from xmtp/daniel-reply-nested-type
daria-github Sep 8, 2023
900807d
release: version packages
github-actions[bot] Sep 8, 2023
5e445fa
Merge pull request #29 from xmtp/changeset-release/main
daria-github Sep 8, 2023
1d97ca0
fix: update the copy for the default fallbacks
nplasterer Sep 9, 2023
41fe976
Create fuzzy-mails-shave.md
nplasterer Sep 9, 2023
b52aafc
disable the lint
nplasterer Sep 9, 2023
e0ff2e4
Merge branch 'np/update-content-type-fallbacks-copy' of https://githu…
nplasterer Sep 9, 2023
dd1980a
maybe fix th linter
nplasterer Sep 9, 2023
5702b4c
handle the any case
nplasterer Sep 9, 2023
64c9bb2
one more lint try
nplasterer Sep 9, 2023
e034bef
fix prettier and lint
nplasterer Sep 9, 2023
c1b32f2
move it into the if statement
nplasterer Sep 11, 2023
6223599
update the docer compose
nplasterer Sep 12, 2023
d82bd64
Merge pull request #30 from xmtp/np/update-content-type-fallbacks-copy
nplasterer Sep 12, 2023
f9f189b
release: version packages
github-actions[bot] Sep 12, 2023
a131244
Merge pull request #31 from xmtp/changeset-release/main
nplasterer Sep 12, 2023
663c6ad
fix: remove timestamp from the read receipt content type
nplasterer Sep 15, 2023
39265e9
Create fluffy-islands-retire.md
nplasterer Sep 15, 2023
1b588b6
fix the test
nplasterer Sep 15, 2023
8525391
Merge branch 'np/remove-timestamp-from-read-receipts' of https://gith…
nplasterer Sep 15, 2023
0596065
remove unused type
nplasterer Sep 15, 2023
bb1eb79
Update packages/content-type-read-receipt/src/ReadReceipt.ts
nplasterer Sep 15, 2023
366b4e6
fix up the test
nplasterer Sep 15, 2023
778950f
Merge pull request #32 from xmtp/np/remove-timestamp-from-read-receipts
nplasterer Sep 15, 2023
a1c8b93
release: version packages
github-actions[bot] Sep 15, 2023
06e96a6
Merge pull request #33 from xmtp/changeset-release/main
nplasterer Sep 15, 2023
0098396
Upgrade to JS SDK v11
rygine Sep 27, 2023
cd7f70e
Create short-bananas-breathe.md
rygine Sep 27, 2023
3813ede
Merge pull request #34 from xmtp/rygine/js-sdk-v11
rygine Sep 27, 2023
a70f74d
release: version packages
github-actions[bot] Sep 27, 2023
ed257ef
Update CHANGELOG.md
rygine Sep 27, 2023
e3b39dc
Update CHANGELOG.md
rygine Sep 27, 2023
3b98fc8
Update CHANGELOG.md
rygine Sep 27, 2023
750fd9a
Update CHANGELOG.md
rygine Sep 27, 2023
65820b3
Merge pull request #35 from xmtp/changeset-release/main
rygine Sep 27, 2023
91b2fdc
Update @xmtp/proto
neekolas Oct 16, 2023
89d28ad
Merge pull request #36 from xmtp/nmolnar/update-xmtp-proto
neekolas Oct 16, 2023
b04067c
release: version packages
github-actions[bot] Oct 16, 2023
18ac511
Merge pull request #37 from xmtp/changeset-release/main
neekolas Oct 16, 2023
3c51bf2
Upgrade `@xmtp/proto` package
rygine Oct 16, 2023
0560ead
Upgrade `@xmtp/xmtp-js` package
rygine Oct 16, 2023
893f723
Create tasty-plums-work.md
rygine Oct 16, 2023
a81dbad
Merge pull request #38 from xmtp/rygine/upgrade-proto
rygine Oct 16, 2023
9656c5a
release: version packages
github-actions[bot] Oct 16, 2023
fb7aa68
Update CHANGELOG.md
rygine Oct 16, 2023
d79e36f
Update CHANGELOG.md
rygine Oct 16, 2023
010be16
Update CHANGELOG.md
rygine Oct 16, 2023
169ff18
Update CHANGELOG.md
rygine Oct 16, 2023
5a901b0
Merge pull request #39 from xmtp/changeset-release/main
rygine Oct 16, 2023
e54a93d
Adding MIT LIcense
bwcDvorak Oct 25, 2023
a207be8
Docs: Add content type statuses, update read receipts doc (#40)
jhaaaa Oct 25, 2023
6d920d1
Merge pull request #41 from xmtp/bwcDvorak-patch-1
bwcDvorak Oct 30, 2023
f47c86d
Add `/experimental` workspace
rygine Dec 18, 2023
4e7e0e0
Fix GH actions
rygine Dec 18, 2023
9b85e97
Merge pull request #43 from xmtp/rygine/add-experimental-workspace
rygine Dec 18, 2023
6ab3e54
add experimental screen effect content type
Dec 18, 2023
63b9c88
removed changelog
Dec 18, 2023
bd77d1e
tweaked readme
Dec 18, 2023
c1a3972
update authority id, fix lint error
Dec 18, 2023
feeef97
fix test
Dec 18, 2023
5451c5d
updated message id
Dec 18, 2023
2c96e1f
added comment
Dec 19, 2023
c351a3f
Merge pull request #44 from xmtp/dj/screen-effect
daria-github Dec 19, 2023
2afe634
export effect type
Dec 19, 2023
73797e1
Merge pull request #45 from xmtp/dj/screen-effect
daria-github Dec 19, 2023
66e76e0
added changeset
Dec 19, 2023
89408e3
Merge pull request #46 from xmtp/dj/screen-effect
daria-github Dec 19, 2023
4379733
release: version packages
github-actions[bot] Dec 19, 2023
beb5337
Merge pull request #47 from xmtp/changeset-release/main
daria-github Dec 19, 2023
832b016
updated authority id
Dec 21, 2023
8e0b7ac
Merge pull request #48 from xmtp/dj/screen-effect
daria-github Dec 21, 2023
193577b
release: version packages
github-actions[bot] Dec 21, 2023
cd02527
Merge pull request #49 from xmtp/changeset-release/main
daria-github Dec 21, 2023
6252a75
transaction reference content type boilerplate
lourou Jan 11, 2024
48dcfed
add link to package in README.md
lourou Jan 11, 2024
0985aa6
update `readme.md` for content type transaction reference
lourou Jan 11, 2024
c483352
add decimals to content type, and clearer comment on amount in read me
lourou Jan 11, 2024
cf3b788
add test scenario for transaction reference content type
lourou Jan 11, 2024
edd2033
remove changelog, update licence year
lourou Jan 11, 2024
54acfc7
add emtpy line at the end of files
lourou Jan 11, 2024
3bca75e
lockfile from main
lourou Jan 17, 2024
ab34e3b
yarn.lock update
lourou Jan 17, 2024
6e579a0
fix type any warning
lourou Jan 17, 2024
0699b27
fix code formatting
lourou Jan 17, 2024
838a093
Merge pull request #50 from lourou/lourou/ct-transaction-reference
rygine Jan 19, 2024
789cb7c
Only publish `/dist` files
rygine Jan 19, 2024
aeb6db7
Create eleven-donkeys-return.md
rygine Jan 19, 2024
72fd1c9
Replace upload service for testing
rygine Jan 20, 2024
fba0cc0
Update remote attachment testing endpoint
rygine Jan 20, 2024
1796c7d
Merge pull request #51 from xmtp/rygine/fix-publishing
rygine Jan 20, 2024
a5638ec
release: version packages
github-actions[bot] Jan 20, 2024
fdd01ed
Merge pull request #52 from xmtp/changeset-release/main
rygine Jan 20, 2024
9d68c2f
Upgrade yarn
rygine Jan 20, 2024
c57e165
Add `.node-version` and `.nvmrc`
rygine Jan 20, 2024
dd104c7
Update docs
rygine Jan 20, 2024
9a272eb
Update LICENSEs
rygine Jan 20, 2024
a9e8605
Merge pull request #53 from xmtp/rygine/update-yarn-docs
rygine Jan 22, 2024
fa90c84
Update turbo config
rygine Jan 22, 2024
48c3a90
Update ESLint configs
rygine Jan 22, 2024
f3e1f8d
Update `tsconfig.json` files
rygine Jan 22, 2024
c02864d
Replace `tsup` with `rollup`
rygine Jan 22, 2024
718cb9f
Create fresh-lobsters-build.md
rygine Jan 22, 2024
ce1fc7b
Merge pull request #54 from xmtp/rygine/tsup-to-rollup
rygine Jan 23, 2024
cfb1726
release: version packages
github-actions[bot] Jan 23, 2024
55ae028
Merge pull request #55 from xmtp/changeset-release/main
rygine Jan 23, 2024
92824e5
Add GitHub issue templates
rygine Jan 23, 2024
07433d3
Update GitHub workflows
rygine Jan 23, 2024
dcc4814
Merge pull request #56 from xmtp/rygine/github-issues
rygine Jan 23, 2024
a070519
Update GitHub actions
rygine Jan 25, 2024
255faab
Merge pull request #58 from xmtp/rygine/update-gh-actions
rygine Feb 6, 2024
1e37af8
Update CODEOWNERS
humanagent Feb 6, 2024
f11a95e
Merge pull request #59 from xmtp/fabriguespe-patch-1
humanagent Feb 6, 2024
02aa439
Upgrade to node `18.19.0`
rygine Feb 16, 2024
ee5c8cb
Add provenance when publishing packages
rygine Feb 16, 2024
ad11584
Upgrade JS SDK to `11.3.12`
rygine Feb 16, 2024
5b9310a
Create large-terms-glow.md
rygine Feb 16, 2024
1c3b18c
Merge pull request #60 from xmtp/rygine/updates
rygine Feb 16, 2024
3716094
release: version packages
github-actions[bot] Feb 16, 2024
b9f14e2
Merge pull request #61 from xmtp/changeset-release/main
rygine Feb 16, 2024
8b95f8b
Fix release permissions
rygine Feb 16, 2024
5b94717
Merge pull request #62 from xmtp/rygine/release-permissions
rygine Feb 16, 2024
99cc641
Upgrade node version
rygine Mar 5, 2024
3342b2a
Upgrade yarn
rygine Mar 5, 2024
572c4f1
Upgrade dev deps
rygine Mar 5, 2024
21813ea
Add prettier-plugin-packagejson, format files
rygine Mar 6, 2024
6516734
Upgrade prettier
rygine Mar 6, 2024
c32b4fb
Upgrade vite, vitest
rygine Mar 6, 2024
456655e
Switch to happy-dom
rygine Mar 6, 2024
fb93426
Merge pull request #63 from xmtp/rygine/update-tooling
rygine Mar 6, 2024
2e5b057
Upgrade dev dependencies
rygine Mar 7, 2024
637c36b
Merge pull request #64 from xmtp/rygine/dev-dep-upgrades
rygine Mar 11, 2024
f2dcf7d
Add `shouldPush` to all content codecs
rygine Mar 12, 2024
2d92381
Add tests
rygine Mar 12, 2024
c4d43dc
Create gorgeous-walls-mate.md
rygine Mar 12, 2024
cef4d7b
Merge pull request #65 from xmtp/rygine/should-push
rygine Mar 12, 2024
96bd8ee
release: version packages
github-actions[bot] Mar 12, 2024
9ac4166
Merge pull request #66 from xmtp/changeset-release/main
rygine Mar 12, 2024
0d3bf7e
Add optional referenceInboxId to reactions and replies
rygine Jun 12, 2024
8896b33
Create silent-adults-clap.md
rygine Jun 12, 2024
3d93112
Merge pull request #68 from xmtp/rygine/ref-inbox-id
rygine Jun 12, 2024
52ddc73
release: version packages
github-actions[bot] Jun 12, 2024
5a19356
Update CHANGELOG.md
rygine Jun 12, 2024
a7fb5f8
Update CHANGELOG.md
rygine Jun 12, 2024
98a8cde
Merge pull request #69 from xmtp/changeset-release/main
rygine Jun 12, 2024
6bf02f1
Add content type primitives package
rygine Jun 13, 2024
75d810d
Fix build step
rygine Jun 13, 2024
7b28275
Merge pull request #70 from xmtp/rygine/primitives
rygine Jun 13, 2024
1670402
Fix package.json
rygine Jun 13, 2024
3900639
Add types
rygine Jun 13, 2024
52bf31e
Create big-crabs-prove.md
rygine Jun 13, 2024
4c63bf0
Merge pull request #71 from xmtp/rygine/primitive-types
rygine Jun 13, 2024
2c05e89
Add registry param to encode/decode
rygine Jun 13, 2024
01827d0
Merge pull request #73 from xmtp/rygine/fix-primitive-types
rygine Jun 13, 2024
abe6bea
release: version packages
github-actions[bot] Jun 13, 2024
4bae28d
Update CHANGELOG.md
rygine Jun 13, 2024
1143d9e
Merge pull request #74 from xmtp/changeset-release/main
rygine Jun 13, 2024
c695f1f
Fix package.json repository URLs
rygine Jun 13, 2024
b437c78
Use primitives package for types
rygine Jun 13, 2024
58de4f3
Update and apply prettier
rygine Jun 13, 2024
9cfbe5d
Upgrade @xmtp/proto
rygine Jun 13, 2024
da0bd85
Create moody-comics-hug.md
rygine Jun 13, 2024
3ae5684
Update prettier config
rygine Jun 13, 2024
9d3a3e3
Fix lint issue
rygine Jun 13, 2024
8d9160f
Fix test command
rygine Jun 13, 2024
0bfee30
Merge pull request #75 from xmtp/rygine/dep-updates
rygine Jun 13, 2024
c39949d
release: version packages
github-actions[bot] Jun 13, 2024
9f06a65
Update CHANGELOG.md
rygine Jun 13, 2024
30bf4fc
Update CHANGELOG.md
rygine Jun 13, 2024
0d7f289
Update package.json
rygine Jun 13, 2024
d96978f
Update package.json
rygine Jun 13, 2024
bb31b42
Update CHANGELOG.md
rygine Jun 13, 2024
4036b53
Update CHANGELOG.md
rygine Jun 13, 2024
107d493
Update package.json
rygine Jun 13, 2024
e7dd58e
Update CHANGELOG.md
rygine Jun 13, 2024
0864495
Update package.json
rygine Jun 13, 2024
c392106
Update CHANGELOG.md
rygine Jun 13, 2024
f83576e
Update package.json
rygine Jun 13, 2024
0770470
Update CHANGELOG.md
rygine Jun 13, 2024
e4706ba
Update package.json
rygine Jun 13, 2024
aca5fc7
Update CHANGELOG.md
rygine Jun 13, 2024
5dfe0dd
Update package.json
rygine Jun 13, 2024
dcd204d
Merge pull request #76 from xmtp/changeset-release/main
rygine Jun 13, 2024
b7e857c
Add text content type
rygine Jun 13, 2024
82c93e3
Fix rollup configs
rygine Jun 13, 2024
f3ea98d
Prepare for repo migration
rygine Oct 8, 2024
733b774
Merge content-types repo
rygine Oct 8, 2024
739b2b0
Move uploadService
rygine Oct 8, 2024
0940798
Move shared workspace
rygine Oct 8, 2024
dba1ea1
Combine turbo configs
rygine Oct 8, 2024
b287bff
Update README
rygine Oct 8, 2024
622ee90
Remove experimental content type
rygine Oct 8, 2024
f143e47
Finalize content-types workspace
rygine Oct 8, 2024
16bf8d3
Update yarn.lock
rygine Oct 8, 2024
7ff50a8
Merge branch 'main' into rygine/content-types
rygine Oct 8, 2024
6f5391f
Remove crypto polyfill from tests
rygine Oct 8, 2024
cf977c0
Upgrade dev deps, update clean commands
rygine Oct 9, 2024
76c405b
Update README
rygine Oct 9, 2024
4e9bf0c
Update prettier config
rygine Oct 9, 2024
68e1c27
Clean up prettier tooling
rygine Oct 9, 2024
d2a733b
Format all files with new prettier config
rygine Oct 9, 2024
8a7f085
Update GitHub workflows
rygine Oct 9, 2024
a8eff06
Fix git links
rygine Oct 9, 2024
9229039
Fix remote attachment README
rygine Oct 9, 2024
203cf9b
Rewrite yarn.lock
rygine Oct 10, 2024
6f2a559
Update GH workflows, remove dd-trace
rygine Oct 10, 2024
814a45d
Fix JS SDK doc build
rygine Oct 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 94 additions & 0 deletions .github/workflows/content-types.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: Content types

on:
push:
branches:
- main

pull_request:
paths:
- "content-types/**"
- ".github/workflows/content-types.yml"
- "dev/**"
- ".node-version"
- ".nvmrc"
- ".yarnrc.yml"
- "turbo.json"
- "yarn.lock"

jobs:
typecheck:
name: Typecheck
runs-on: warp-ubuntu-latest-x64-8x
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "yarn"
env:
SKIP_YARN_COREPACK_CHECK: "1"
- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: yarn
- name: Typecheck
run: yarn turbo run typecheck --filter='./content-types/*'

lint:
name: Lint
runs-on: warp-ubuntu-latest-x64-8x
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "yarn"
env:
SKIP_YARN_COREPACK_CHECK: "1"
- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: yarn
- name: Lint
run: yarn turbo run lint --filter='./content-types/*'

test:
name: Test
runs-on: warp-ubuntu-latest-x64-8x
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "yarn"
env:
SKIP_YARN_COREPACK_CHECK: "1"
- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: yarn
- name: Start dev environment
run: ./dev/up
- name: Sleep for 5 seconds
run: sleep 5s
- name: Run tests
run: yarn turbo run test --filter='./content-types/*'

build:
name: Build
runs-on: warp-ubuntu-latest-x64-8x
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "yarn"
env:
SKIP_YARN_COREPACK_CHECK: "1"
- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: yarn
- name: Build
run: yarn turbo run build --filter='./content-types/*'
90 changes: 25 additions & 65 deletions .github/workflows/js-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@ on:

pull_request:
paths:
- 'packages/js-sdk/**'
- '.github/workflows/js-sdk.yml'
- 'dev/**'
- '.node-version'
- '.nvmrc'
- '.prettierignore'
- '.prettierrc.cjs'
- '.yarnrc.yml'
- 'turbo.json'
- 'yarn.lock'
- "packages/js-sdk/**"
- ".github/workflows/js-sdk.yml"
- "dev/**"
- ".node-version"
- ".nvmrc"
- ".yarnrc.yml"
- "turbo.json"
- "yarn.lock"

jobs:
typecheck:
Expand All @@ -26,18 +24,16 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
node-version-file: ".nvmrc"
cache: "yarn"
env:
SKIP_YARN_COREPACK_CHECK: '1'
SKIP_YARN_COREPACK_CHECK: "1"
- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: yarn
- name: Typecheck
run: |
cd packages/js-sdk
yarn typecheck
run: yarn turbo run typecheck --filter='./packages/js-sdk'

lint:
name: Lint
Expand All @@ -46,38 +42,16 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
node-version-file: ".nvmrc"
cache: "yarn"
env:
SKIP_YARN_COREPACK_CHECK: '1'
SKIP_YARN_COREPACK_CHECK: "1"
- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: yarn
- name: Lint
run: |
cd packages/js-sdk
yarn lint

prettier:
name: Prettier
runs-on: warp-ubuntu-latest-x64-8x
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
env:
SKIP_YARN_COREPACK_CHECK: '1'
- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: yarn
- name: Format check
run: |
cd packages/js-sdk
yarn format:check
run: yarn turbo run lint --filter='./packages/js-sdk'

test:
name: Test
Expand All @@ -86,10 +60,10 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
node-version-file: ".nvmrc"
cache: "yarn"
env:
SKIP_YARN_COREPACK_CHECK: '1'
SKIP_YARN_COREPACK_CHECK: "1"
- name: Enable corepack
run: corepack enable
- name: Install dependencies
Expand All @@ -98,20 +72,8 @@ jobs:
run: ./dev/up
- name: Sleep for 5 seconds
run: sleep 5s
- name: Run node tests
run: |
cd packages/js-sdk
yarn test:node
env:
NODE_OPTIONS: '-r dd-trace/ci/init'
DD_ENV: ci:node
DD_SERVICE: xmtp-js
DD_CIVISIBILITY_AGENTLESS_ENABLED: 'true'
DD_API_KEY: ${{ secrets.DD_API_KEY }}
- name: Run browser tests
run: |
cd packages/js-sdk
yarn test:browser
- name: Run tests
run: yarn turbo run test --filter='./packages/js-sdk'

build:
name: Build
Expand All @@ -120,15 +82,13 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
node-version-file: ".nvmrc"
cache: "yarn"
env:
SKIP_YARN_COREPACK_CHECK: '1'
SKIP_YARN_COREPACK_CHECK: "1"
- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: yarn
- name: Build
run: |
cd packages/js-sdk
yarn build
run: yarn turbo run build --filter='./packages/js-sdk'
78 changes: 24 additions & 54 deletions .github/workflows/mls-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@ on:

pull_request:
paths:
- 'packages/mls-client/**'
- '.github/workflows/mls-client.yml'
- 'dev/**'
- '.node-version'
- '.nvmrc'
- '.prettierignore'
- '.prettierrc.cjs'
- '.yarnrc.yml'
- 'turbo.json'
- 'yarn.lock'
- "packages/mls-client/**"
- ".github/workflows/mls-client.yml"
- "dev/**"
- ".node-version"
- ".nvmrc"
- ".yarnrc.yml"
- "turbo.json"
- "yarn.lock"

jobs:
typecheck:
Expand All @@ -26,18 +24,16 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
node-version-file: ".nvmrc"
cache: "yarn"
env:
SKIP_YARN_COREPACK_CHECK: '1'
SKIP_YARN_COREPACK_CHECK: "1"
- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: yarn
- name: Typecheck
run: |
cd packages/mls-client
yarn typecheck
run: yarn turbo run typecheck --filter='./packages/mls-client'

lint:
name: Lint
Expand All @@ -46,38 +42,16 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
node-version-file: ".nvmrc"
cache: "yarn"
env:
SKIP_YARN_COREPACK_CHECK: '1'
SKIP_YARN_COREPACK_CHECK: "1"
- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: yarn
- name: Lint
run: |
cd packages/mls-client
yarn lint

prettier:
name: Prettier
runs-on: warp-ubuntu-latest-x64-8x
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
env:
SKIP_YARN_COREPACK_CHECK: '1'
- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: yarn
- name: Format check
run: |
cd packages/mls-client
yarn format:check
run: yarn turbo run lint --filter='./packages/mls-client'

test:
name: Test
Expand All @@ -86,10 +60,10 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
node-version-file: ".nvmrc"
cache: "yarn"
env:
SKIP_YARN_COREPACK_CHECK: '1'
SKIP_YARN_COREPACK_CHECK: "1"
- name: Enable corepack
run: corepack enable
- name: Install dependencies
Expand All @@ -99,9 +73,7 @@ jobs:
- name: Sleep for 5 seconds
run: sleep 5s
- name: Run tests
run: |
cd packages/mls-client
yarn test
run: yarn turbo run test --filter='./packages/mls-client'

build:
name: Build
Expand All @@ -110,15 +82,13 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
node-version-file: ".nvmrc"
cache: "yarn"
env:
SKIP_YARN_COREPACK_CHECK: '1'
SKIP_YARN_COREPACK_CHECK: "1"
- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: yarn
- name: Build
run: |
cd packages/mls-client
yarn build
run: yarn turbo run build --filter='./packages/mls-client'
Loading