chore(master): release synapse-core 0.4.0 #711
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - "packages/**" | |
| - "apps/**" | |
| - .github/workflows/ci.yml | |
| - package.json | |
| - pnpm-lock.yaml | |
| - pnpm-workspace.yaml | |
| pull_request: | |
| paths: | |
| - "packages/**" | |
| - "apps/**" | |
| - .github/workflows/ci.yml | |
| - package.json | |
| - pnpm-lock.yaml | |
| - pnpm-workspace.yaml | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v6 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v5 | |
| - name: Use Node.js lts/* | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: lts/* | |
| - name: Install Dependencies | |
| run: pnpm install | |
| - name: Generate ABIs | |
| run: | | |
| pnpm -r --filter @filoz/synapse-core run generate-abi | |
| - name: Check for ABI changes | |
| run: | | |
| if [ -n "$(git status --porcelain)" ]; then | |
| echo "Error: ABI generation resulted in changes. Please run 'pnpm run generate-abi' and commit the changes." | |
| git status | |
| git diff | |
| exit 1 | |
| fi | |
| - name: Lint | |
| run: pnpm run lint | |
| - name: Build | |
| run: pnpm run build | |
| - name: Build docs | |
| run: pnpm -r --filter docs run build | |
| test-synapse-sdk: | |
| needs: lint | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node: [lts/*, current] | |
| os: [macos-latest, ubuntu-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v6 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v5 | |
| - name: Use Node.js ${{ matrix.node }} | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: Playwright for Windows | |
| if: matrix.os == 'windows-latest' | |
| run: pnpx playwright install winldd | |
| - name: Install Dependencies | |
| run: pnpm install | |
| - name: Run synapse-sdk tests | |
| run: | | |
| pnpm config set script-shell bash | |
| pnpm -r --filter @filoz/synapse-sdk run test | |
| test-synapse-core: | |
| needs: lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v6 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v5 | |
| - name: Use Node.js lts/* | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: lts/* | |
| - name: Install Dependencies | |
| run: pnpm install | |
| - name: Run synapse-core tests | |
| run: pnpm -r --filter @filoz/synapse-core run test |