Skip to content

Commit

Permalink
chore: ci runner
Browse files Browse the repository at this point in the history
  • Loading branch information
cesara committed Dec 5, 2023
1 parent 831ab24 commit 653aaac
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 0 deletions.
67 changes: 67 additions & 0 deletions packages/reflect-yjs/.github/workflows/js.yml
Original file line number Diff line number Diff line change
@@ -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
25 changes: 25 additions & 0 deletions packages/reflect-yjs/.github/workflows/syncpack.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 653aaac

Please sign in to comment.