diff --git a/.github/workflows/docker-tests.yml b/.github/workflows/docker-tests.yml index 6def82c68..61ec1ed55 100644 --- a/.github/workflows/docker-tests.yml +++ b/.github/workflows/docker-tests.yml @@ -3,42 +3,25 @@ on: push: branches: - main + paths-ignore: + - '**/*.md' + - '**/*.txt' pull_request: # workflow_dispatch will let us manually trigger the workflow from GitHub actions dashboard. - # See https://docs.github.com/en/free-pro-team@latest/actions/managing-workflow-runs/manually-running-a-workflow - # See https://docs.github.com/en/free-pro-team@latest/actions/managing-workflow-runs/manually-running-a-workflow + # See https://docs.github.com/en/free-pro-team@latest/actions/managing-workflow-runs/manually-running-a-workflow workflow_dispatch: jobs: build-on-linux: - strategy: - matrix: - docker-version: [19.03] - runs-on: ubuntu-latest + # Ubuntu-20.04 runner comes with docker 19.03 and OpenJDK 11 and we are using that here. + runs-on: ubuntu-20.04 name: Build and run Docker images steps: - - name: Update Packages - run: sudo apt-get update -yqq --fix-missing - - name: Install Docker - uses: docker-practice/actions-setup-docker@master - with: - docker_version: ${{ matrix.docker-version }} - docker_buildx: false - - name: Cache docker - uses: actions/cache@v1 - with: - path: ~/.docker - key: ${{ runner.os }}-docker-${{ hashFiles('**/Dockerfile') }} - restore-keys: ${{ runner.os }}-docker - name: Checkout Repository uses: actions/checkout@v2 with: - fetch-depth: 10 + fetch-depth: 0 submodules: recursive - - name: Install JDK - uses: actions/setup-java@v1 - with: - java-version: 14 - name: Cache Gradle uses: actions/cache@v1 with: