name: test
on: [push, pull_request]

jobs:
  bucklescript:
    strategy:
      matrix:
        os:
        - ubuntu-latest
        - macos-latest

    runs-on: ${{matrix.os}}
    steps:
    - uses: actions/checkout@v2
    - run: npm install esy
    - run: echo PATH=$(pwd)/node_modules/.bin:$PATH >> $GITHUB_ENV
    - run: make -C test/bucklescript full-test
    - if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/master' }}
      env:
        DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
      run: bash ./test/ci/travis-binaries.sh

name: test
on: [push, pull_request]

jobs:
  bucklescript:
    strategy:
      matrix:
        os:
        - ubuntu-18.04
        - macos-10.15

    runs-on: ${{matrix.os}}
    steps:
    - uses: actions/checkout@v2
    - run: npm install esy
    - run: echo PATH=$(pwd)/node_modules/.bin:$PATH >> $GITHUB_ENV
    - run: make -C test/bucklescript full-test
    - if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/master' }}
      env:
        DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
      run: bash ./test/ci/travis-binaries.sh

Downgrade operating systems in binary builders
Downgrade operating systems in binary builders
