Skip to content

Commit 31b027a

Browse files
authored
optimised docker e2e test with GH action (#89)
* optimised docker e2e test with GH action * Update docker-tests.yml * adds version details comment
1 parent 8a8e32f commit 31b027a

File tree

1 file changed

+7
-24
lines changed

1 file changed

+7
-24
lines changed

.github/workflows/docker-tests.yml

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,25 @@ on:
33
push:
44
branches:
55
- main
6+
paths-ignore:
7+
- '**/*.md'
8+
- '**/*.txt'
69
pull_request:
710
# workflow_dispatch will let us manually trigger the workflow from GitHub actions dashboard.
8-
# See https://docs.github.com/en/free-pro-team@latest/actions/managing-workflow-runs/manually-running-a-workflow
9-
# See https://docs.github.com/en/free-pro-team@latest/actions/managing-workflow-runs/manually-running-a-workflow
11+
# See https://docs.github.com/en/free-pro-team@latest/actions/managing-workflow-runs/manually-running-a-workflow
1012
workflow_dispatch:
1113

1214
jobs:
1315
build-on-linux:
14-
strategy:
15-
matrix:
16-
docker-version: [19.03]
17-
runs-on: ubuntu-latest
16+
# Ubuntu-20.04 runner comes with docker 19.03 and OpenJDK 11 and we are using that here.
17+
runs-on: ubuntu-20.04
1818
name: Build and run Docker images
1919
steps:
20-
- name: Update Packages
21-
run: sudo apt-get update -yqq --fix-missing
22-
- name: Install Docker
23-
uses: docker-practice/actions-setup-docker@master
24-
with:
25-
docker_version: ${{ matrix.docker-version }}
26-
docker_buildx: false
27-
- name: Cache docker
28-
uses: actions/cache@v1
29-
with:
30-
path: ~/.docker
31-
key: ${{ runner.os }}-docker-${{ hashFiles('**/Dockerfile') }}
32-
restore-keys: ${{ runner.os }}-docker
3320
- name: Checkout Repository
3421
uses: actions/checkout@v2
3522
with:
36-
fetch-depth: 10
23+
fetch-depth: 0
3724
submodules: recursive
38-
- name: Install JDK
39-
uses: actions/setup-java@v1
40-
with:
41-
java-version: 14
4225
- name: Cache Gradle
4326
uses: actions/cache@v1
4427
with:

0 commit comments

Comments
 (0)