name: Build and test

on: [push, pull_request]

jobs:
  build-and-test:
    runs-on: ubuntu-latest
    timeout-minutes: 10
    env:
      GET_GAUCHE_URL: https://raw.githubusercontent.com/shirok/get-gauche/master
    steps:
    - uses: actions/checkout@v3
    - name: Install dependencies
      run: |
        curl -f -o get-gauche.sh $GET_GAUCHE_URL/get-gauche.sh
        chmod +x get-gauche.sh
        ./get-gauche.sh --sudo --auto --skip-tests --prefix=/usr
        sudo apt install -y libpq-dev libssl-dev postgresql postgresql-client
        sudo service postgresql start
        sudo -u postgres createuser runner
        sudo -u postgres createdb runner
    - name: Build and check
      run: |
        ./configure
        make
        make -s check

name: Build and test

on: [push, pull_request]

jobs:
  build-and-test:
    runs-on: ubuntu-latest
    timeout-minutes: 10
    steps:
    - uses: actions/checkout@v3
    - uses: shirok/setup-gauche@v1
    - name: Install and setup postgresql
      run: |
        sudo apt install -y libpq-dev libssl-dev postgresql postgresql-client
        sudo service postgresql start
        sudo -u postgres createuser runner
        sudo -u postgres createdb runner
    - name: Build and check
      run: |
        ./configure
        make
        make -s check

Use setup-gauche for auto test
Use setup-gauche for auto test
