Replicache v15 update #42
Workflow file for this run
This file contains 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 | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
build: | |
name: Build and Test | |
timeout-minutes: 15 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 2 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: "yarn" | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Check Package Sync | |
run: if [[ -z $(yarn syncpack list-mismatches) ]]; then echo exit 0; else echo exit 1; fi | |
- name: Build | |
run: yarn run build | |
- name: Test TypeScript | |
run: yarn run test-typescript | |
- name: Lint | |
run: yarn run lint | |
check_workspace_dependency_drift: | |
name: Check Workspace Dependency Drift | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 2 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: "yarn" | |
- name: Generate new syncpack snapshot | |
run: yarn run update-syncpack-snapshot | |
shell: bash | |
- name: Check for unexpected workspace dependency drift | |
run: git diff --exit-code -- syncpack-snapshot.txt |