Skip to content

Commit

Permalink
Merge pull request #676 from xmtp/rygine/content-types
Browse files Browse the repository at this point in the history
Migrate content types into repo
  • Loading branch information
rygine authored Oct 10, 2024
2 parents c6b1ab5 + 814a45d commit 95a8450
Show file tree
Hide file tree
Showing 255 changed files with 14,331 additions and 10,571 deletions.
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

0 comments on commit 95a8450

Please sign in to comment.