Skip to content

fix(model-client): ReplicatedModelJSImpl was causing `Not in a transa… #4553

fix(model-client): ReplicatedModelJSImpl was causing `Not in a transa…

fix(model-client): ReplicatedModelJSImpl was causing `Not in a transa… #4553

Workflow file for this run

name: Code linting
on:
pull_request:
jobs:
pre-commit:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
with:
node-version-file: '.nvmrc'
- uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5
with:
path: node_modules
key: release-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
run: npm ci
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
# openapi-linting:
# runs-on: ubuntu-24.04
# steps:
# - name: Clone repo
# uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
# - uses: stoplightio/spectral-action@6416fd018ae38e60136775066eb3e98172143141 # v0.8.13
# with:
# file_glob: 'model-server-openapi/specifications/model-server-*.yaml'
# spectral_ruleset: .spectral.yaml
# continue-on-error: true
openapi-breaking-changes:
runs-on: ubuntu-24.04
permissions:
pull-requests: write
steps:
- name: Clone repo
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
# We need the history to find the common ancestor of the PR and the target branch from which we fetch the
# baseline OpenAPI specifications to compare against.
fetch-depth: 0
- name: Fetch baseline OpenAPI specifications
run: |
mergeBase="$(git merge-base --fork-point "origin/${{ github.base_ref }}")"
echo "mergeBase: $mergeBase"
git restore -s "$mergeBase" -W -- model-server-openapi/specifications
cp -R model-server-openapi/specifications model-server-openapi/specifications-before
git checkout model-server-openapi/specifications
- name: Run oasdiff
id: breaking
uses: oasdiff/oasdiff-action/breaking@main
with:
base: 'model-server-openapi/specifications-before/*.yaml'
revision: 'model-server-openapi/specifications/*.yaml'
composed: true