diff --git a/packages/reflect-yjs/.github/workflows/js.yml b/packages/reflect-yjs/.github/workflows/js.yml new file mode 100644 index 0000000..d07ffde --- /dev/null +++ b/packages/reflect-yjs/.github/workflows/js.yml @@ -0,0 +1,67 @@ +name: JS + +on: + push: + branches: [main] + pull_request: + branches: [main] + +# This allows a subsequently queued workflow run to interrupt previous runs +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + +jobs: + format: + name: Prettier + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: 'npm' + - run: npm ci + - run: npm run check-format + + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: 'npm' + - run: npm ci + - run: npm run lint + + check-types: + name: Check Types + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: 'npm' + - run: npm ci + - run: npm run check-types + + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: 'npm' + + + - run: npm ci + + - name: Install Playwright Deps + run: npx playwright install --with-deps + + - run: npm run test diff --git a/packages/reflect-yjs/.github/workflows/syncpack.yml b/packages/reflect-yjs/.github/workflows/syncpack.yml new file mode 100644 index 0000000..799c735 --- /dev/null +++ b/packages/reflect-yjs/.github/workflows/syncpack.yml @@ -0,0 +1,25 @@ +name: SyncPack + +on: + push: + branches: [main] + pull_request: + branches: [main] + +# This allows a subsequently queued workflow run to interrupt previous runs +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + +jobs: + syncpack: + name: Sync Package Versions + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: 'npm' + - run: npm ci + - run: npx syncpack list-mismatches