diff --git a/.buildkite/jsi_codegen.yml b/.buildkite/jsi_codegen.yml new file mode 100644 index 000000000..2b8312d8d --- /dev/null +++ b/.buildkite/jsi_codegen.yml @@ -0,0 +1,13 @@ +steps: + - label: 'JSI Codegen' + command: + - '(pkill flow || true)' + - 'yarn cleaninstall --frozen-lockfile --skip-optional --network-timeout 180000' + - 'cd native && yarn codegen-jsi && git diff --exit-code' + plugins: + - docker#v3.13.0: + image: 'node:16.13-bullseye' + always-pull: true + workdir: /comm + agents: + - 'autoscaling=true' diff --git a/.github/workflows/jsi_codegen.yml b/.github/workflows/jsi_codegen.yml new file mode 100644 index 000000000..32a8bb3e3 --- /dev/null +++ b/.github/workflows/jsi_codegen.yml @@ -0,0 +1,23 @@ +name: JSI Codegen + +on: + push: + branches: [master] + pull_request: + types: [opened, reopened] + +jobs: + build: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + + - name: npm install -g yarn + run: npm install -g yarn + + - name: yarn --frozen-lockfile --network-timeout 180000 + run: yarn --frozen-lockfile --network-timeout 180000 + + - name: '[native] JSI Codegen' + working-directory: ./native + run: yarn codegen-jsi && git diff --exit-code