name: Resilience & Failover CI

on: [push]

jobs:
  resilience-test:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - name: Install ArangoDB
        run: |
          curl -OL https://download.arangodb.com/arangodb36/DEBIAN/Release.key
          sudo apt-key add - < Release.key
          echo 'deb https://download.arangodb.com/arangodb36/DEBIAN/ /' | sudo tee /etc/apt/sources.list.d/arangodb.list
          sudo apt-get install apt-transport-https
          sudo apt-get update
          sudo apt-get install arangodb3
          sudo service arangodb3 stop
          mkdir -p ~/arangodb/build/bin ~/share/arangodb3
          ln -s $(which arangod) ~/arangodb/build/bin/arangod
          ln -s $(find / -path '*/arangodb3/icudtl.dat') ~/share/arangodb3/
          ln -s $(find / -path '*/arangodb3/js') ~/arangodb/js
      - run: yarn
      - run: yarn test
        env:
          RESILIENCE_ARANGO_BASEPATH: ~/arangodb
          LOG_IMMEDIATE: 1
          CI: true

name: Resilience & Failover CI

on: [push]

jobs:
  resilience-test:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - name: Install ArangoDB
        run: |
          curl -OL https://download.arangodb.com/arangodb36/DEBIAN/Release.key
          sudo apt-key add - < Release.key
          echo 'deb https://download.arangodb.com/arangodb36/DEBIAN/ /' | sudo tee /etc/apt/sources.list.d/arangodb.list
          sudo apt-get install apt-transport-https
          sudo apt-get update
          sudo apt-get install arangodb3
          sudo service arangodb3 stop
      - run: yarn
      - run: yarn test
        env:
          RESILIENCE_ARANGO_BASEPATH: 1
          LOG_IMMEDIATE: 1
          CI: true

Use global arangod in test
Use global arangod in test
