Skip to content

Commit

Permalink
Update GH workflows, remove dd-trace
Browse files Browse the repository at this point in the history
  • Loading branch information
rygine committed Oct 10, 2024
1 parent 203cf9b commit 6f2a559
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 405 deletions.
28 changes: 5 additions & 23 deletions .github/workflows/js-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ jobs:
- 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 @@ -53,9 +51,7 @@ jobs:
- name: Install dependencies
run: yarn
- name: Lint
run: |
cd packages/js-sdk
yarn lint
run: yarn turbo run lint --filter='./packages/js-sdk'

test:
name: Test
Expand All @@ -76,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 @@ -107,6 +91,4 @@ jobs:
- name: Install dependencies
run: yarn
- name: Build
run: |
cd packages/js-sdk
yarn build
run: yarn turbo run build --filter='./packages/js-sdk'
16 changes: 4 additions & 12 deletions .github/workflows/mls-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ jobs:
- 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 @@ -53,9 +51,7 @@ jobs:
- name: Install dependencies
run: yarn
- name: Lint
run: |
cd packages/mls-client
yarn lint
run: yarn turbo run lint --filter='./packages/mls-client'

test:
name: Test
Expand All @@ -77,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 @@ -97,6 +91,4 @@ jobs:
- name: Install dependencies
run: yarn
- name: Build
run: |
cd packages/mls-client
yarn build
run: yarn turbo run build --filter='./packages/mls-client'
3 changes: 1 addition & 2 deletions packages/js-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"clean:docs": "rimraf docs",
"lint": "eslint . --ignore-path ../../.gitignore",
"package": "yarn pack",
"test": "yarn test:node",
"test": "yarn test:node && yarn test:browser",
"test:browser": "vitest run --environment happy-dom",
"test:cov": "vitest run --coverage",
"test:node": "vitest run",
Expand Down Expand Up @@ -120,7 +120,6 @@
"@vitest/coverage-v8": "^2.1.2",
"@xmtp/rollup-plugin-resolve-extensions": "1.0.1",
"benny": "^3.7.1",
"dd-trace": "5.5.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
Expand Down
Loading

0 comments on commit 6f2a559

Please sign in to comment.