name: Test Suite

on: [push, pull_request]

jobs:
  test_suite:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1

    - name: Update Docker Compose
      run: |
        curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
        chmod +x docker-compose
        sudo mv docker-compose /usr/local/bin
    
    - name: Run test suite
      run: |
        cp azuracast.sample.env azuracast.env
        alias dc-testing='docker-compose -f docker-compose.sample.yml -f docker-compose.testing.yml'
        dc-testing build web
        dc-testing --user="azuracast" --rm web azuracast_install
        dc-testing run --user="azuracast" --rm web composer test

name: Test Suite

on: [push, pull_request]

jobs:
  test_suite:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1

    - name: Update Docker Compose
      run: |
        curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
        chmod +x docker-compose
        sudo mv docker-compose /usr/local/bin
    
    - name: Run test suite
      run: |
        shopt -s expand_aliases
        cp azuracast.sample.env azuracast.env
        alias dc-testing='docker-compose -f docker-compose.sample.yml -f docker-compose.testing.yml'
        dc-testing build web
        dc-testing --user="azuracast" --rm web azuracast_install
        dc-testing run --user="azuracast" --rm web composer test

Add expand_aliases to test suite.
Add expand_aliases to test suite.

