Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 7 additions & 24 deletions .github/workflows/docker-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a comment here?
The workflow needs docker and java versions, so it's better to know against what version it has been tested.

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:
Expand Down