name: Node CI

on: [push, pull_request]

jobs:
  test:
    name: Run test suite
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [12.x]
    steps:
    - uses: actions/checkout@v2.3.4
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v2.1.2
      with:
        node-version: ${{ matrix.node-version }}
    - name: install build dependencies
      run: |
        sudo apt-get install -y libpng-dev libatlas-base-dev libblas-dev libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev graphicsmagick build-essential g++-4.8
    - run: npm install
    - run: npm run build
    - run: npm test
      env:
        CI: true
  merge-me:
    name: Auto-merge dependency updates
    needs: test
    runs-on: ubuntu-latest
    steps:
    - uses: ridedott/merge-me-action@v1.8.61
      with:
        GITHUB_LOGIN: 'dependabot[bot]'
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        MERGE_METHOD: MERGE

name: Node CI

on: [push, pull_request]

jobs:
  test:
    name: Run test suite
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [12.x]
    steps:
    - uses: actions/checkout@v2.3.4
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v2.1.2
      with:
        node-version: ${{ matrix.node-version }}
    - name: install build dependencies
      run: |
        sudo apt-get install -y libpng-dev libatlas-base-dev libblas-dev libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev graphicsmagick build-essential g++-4.8
    - run: npm install
    - run: npm run build
    - run: npm test
      env:
        CI: true
  merge-me:
    name: Auto-merge dependency updates
    needs: test
    runs-on: ubuntu-latest
    steps:
    - uses: ridedott/merge-me-action@v1.8.61
      with:
        GITHUB_LOGIN: 'dependabot[bot]'
        # We need to use a custom token to trigger a build for the merge
        # Using the default token doesn't do this.
        GITHUB_TOKEN: ${{ secrets.GH_MERGE_TOKEN }}
        MERGE_METHOD: MERGE

Use custom token for the merge
Use custom token for the merge
