name: Docker build on: [pull_request] jobs: docker: strategy: fail-fast: false matrix: # archlinux is removed for now until we use virtualenv for deps install images: [ubuntu18.04, ubuntu20.04, ubuntu22.04, debian10, debian11] runs-on: ubuntu-latest timeout-minutes: 30 steps: - uses: actions/checkout@v2 - name: Cache for docker images uses: jpribyl/action-docker-layer-caching@v0.1.1 # Ignore the failure of a step and avoid terminating the job. continue-on-error: true with: path: ~/.cache/images key: ${{ matrix.images }}-cache-images-{hash} - name: Docker Build ${{ matrix.images }} run: docker-compose pull ${{ matrix.images }} - name: Test on ${{ matrix.images }} run: docker-compose run ${{ matrix.images }} ./tests.sh