Port official relay tutorial #869
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: Bindings | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Bindings | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: packages/rescript-relay | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
env: | |
CI: true | |
- name: Install esy | |
run: npm install -g esy | |
- name: Build PPX | |
uses: esy/github-action@master | |
with: | |
cache-key: ${{ hashFiles('esy.lock/index.json') }} | |
working-directory: packages/rescript-relay/rescript-relay-ppx | |
- name: Install | |
run: | | |
yarn --frozen-lockfile | |
- name: Build | |
run: | | |
yarn build | |
- name: Test | |
run: | | |
yarn test:ci |