Skip to content

Commit

Permalink
Enable Tarantool CE versions matrix and Docker layers caching in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
akudiyar authored and wey1and committed Jul 20, 2021
1 parent fe1712f commit 23a589e
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/ubuntu-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,41 @@ on:
branches: [ master ]

jobs:
build:

tests-ce:
runs-on: ubuntu-latest

strategy:
matrix:
tarantool-version: [ "1.10", "2.8" ]
fail-fast: false
steps:
- uses: actions/checkout@v2

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Cache docker images
uses: satackey/[email protected]
continue-on-error: true
with:
key: ${{ runner.os }}-docker-layer-cache-${{ matrix.tarantool-version }}
restore-keys: |
${{ runner.os }}-docker-layer-cache-
- name: Build with Maven
run: mvn -B verify --file pom.xml

- name: Run integration tests
env:
TARANTOOL_VERSION: ${{ matrix.tarantool-version }}
TARANTOOL_SERVER_USER: root
TARANTOOL_SERVER_GROUP: root
run: mvn -B test -P integration --file pom.xml

0 comments on commit 23a589e

Please sign in to comment.