name: Docker Test

on:
  push:
    branches: [ main, develop ]
  pull_request:
    branches: [ main, develop ]

jobs:
  docker-test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        runtime:
          - alpine
          - archlinux
          - centos
    steps:
      - name: checkout
        uses: actions/checkout@v3
      - name: ${{ matrix.runtime }}
        shell: 'script -q -e -c "bash {0}"'
        run: bash ./test/run --build --run ${{ matrix.runtime }}
