Skip to content

Merge pull request #28 from juspay/ci/repo-infrastructure #6

Merge pull request #28 from juspay/ci/repo-infrastructure

Merge pull request #28 from juspay/ci/repo-infrastructure #6

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build ReScript bindings
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Fail if any .failed.res files exist
run: |
if ls src/*.failed.res 1> /dev/null 2>&1; then
echo "Found .failed.res files — some components failed to generate:"
ls src/*.failed.res
exit 1
fi