Skip to content

Bump XMTP to v12.1 SDK #747

Bump XMTP to v12.1 SDK

Bump XMTP to v12.1 SDK #747

Workflow file for this run

name: PR CI
on:
pull_request:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.ref }}-${{ github.event_name }}-pr
cancel-in-progress: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
pr_ci:
name: PR CI
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup
- name: Build shared libraries
run: yarn build
- name: Typecheck
run: yarn typecheck
- name: Lint
run: yarn lint
- uses: dorny/paths-filter@v2
id: changes
with:
base: ${{ github.base_ref }}
filters: |-
server: [server/**, packages/**]
packages: [packages/**]
npmUiComponentsChangeLog: [packages/ui-components/CHANGELOG.md]
npmUiComponentsVersion: [packages/ui-components/package.json]
npmConfigChangeLog: [packages/config/CHANGELOG.md]
npmConfigVersion: [packages/config/package.json]
- name: Run Tests - UD.me Frontend
if: ${{ steps.changes.outputs.server == 'true' }}
run: yarn test:ci ./server/**
env:
NODE_OPTIONS: --max_old_space_size=3072
- name: Run Tests - Shared Packages
if: ${{ steps.changes.outputs.packages == 'true' }}
run: yarn test:ci ./packages/**
env:
NODE_OPTIONS: --max_old_space_size=3072
- name: Verify NPM build
run: yarn dist
- name: Comment PR
uses: thollander/actions-comment-pull-request@v1
with:
message: |
:tada: All your tests were successful!
We detected changes in the following:
${{ steps.changes.outputs.server == 'true' && '- UD.me frontend' || '' }}
${{ steps.changes.outputs.packages == 'true' && '- Shared packages' || '' }}
${{ steps.changes.outputs.npmUiComponentsChangeLog == 'true' && steps.changes.outputs.npmUiComponentsVersion == 'true' && '- NPM build: `@unstoppabledomains/ui-components`' || '' }}
${{ steps.changes.outputs.npmConfigChangeLog == 'true' && steps.changes.outputs.npmConfigVersion == 'true' && '- NPM build: `@unstoppabledomains/config`' || '' }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload test results to GitHub
uses: actions/upload-artifact@v3
continue-on-error: true
with:
name: ${{ github.sha }}
path: |
coverage/**/lcov.info
coverage/**/coverage-final.json
retention-days: 1