Skip to content

Commit

Permalink
Upgrade testcontainers up to 1.18.3 version. Fix GitHub actions: setu…
Browse files Browse the repository at this point in the history
…p-java, etc.
  • Loading branch information
Maksim Kostromin authored and daggerok committed Jun 25, 2023
1 parent 56a2e22 commit bd1b09b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 34 deletions.
32 changes: 11 additions & 21 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,25 @@
name: Gradle
on: [push]
env:
JAVA_VERSION: '8'
jobs:
ui:
strategy:
matrix:
java: [8]
os: [ubuntu-latest]
nodejs-version: [12]
python-version: [3.8]
docker-version: [19.09]
docker-channel: [stable]
name: ui java ${{ matrix.java }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
name: ui gradle
runs-on: ubuntu-latest

steps:
- name: Git clone
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: Setup Docker ${{ matrix.docker-channel }} ${{ matrix.docker-version }}
uses: docker-practice/actions-setup-docker@master
- name: Setup java ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v3
with:
docker_version: ${{ matrix.docker-version }}
docker_channel: ${{ matrix.docker-channel }}

- name: Setup java ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
# 'temurin' 'zulu' 'adopt' 'adopt-hotspot' 'adopt-openj9' 'liberica' 'microsoft'
distribution: 'temurin'
java-version: ${{ env.JAVA_VERSION }}

- name: Cache gradle deps ~/.gradle
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.gradle
key: ${{ runner.os }}-${{ matrix.os }}-gradle-
Expand Down
27 changes: 15 additions & 12 deletions .github/workflows/ui.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
name: UI
on: [push]
env:
JAVA_VERSION: '11'
jobs:
ui:
strategy:
matrix:
java: [11]
os: [ubuntu-latest]
nodejs-version: [12]
python-version: [3.8]
docker-version: [19.09]
docker-channel: [stable]
name: ui java ${{ matrix.java }} on ${{ matrix.os }}
name: ui on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

steps:
- name: Git clone
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Cache python ${{ matrix.python-version }} deps
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.pip
key: ${{ runner.os }}-${{ matrix.os }}-pip-
Expand All @@ -39,19 +40,19 @@ jobs:
docker_version: ${{ matrix.docker-version }}
docker_channel: ${{ matrix.docker-channel }}
- name: Cache docker ${{ matrix.docker-channel }} ${{ matrix.docker-version }}
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.docker
key: ${{ runner.os }}-${{ matrix.os }}-docker-${{ hashFiles('**/Dockerfile*') }}
restore-keys: |
${{ runner.os }}-${{ matrix.os }}-docker-
- name: Setup NodeJS ${{ matrix.nodejs-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.nodejs-version }}
- name: Cache npm ${{ matrix.nodejs-version }} deps
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-${{ matrix.os }}-npm-
Expand All @@ -60,13 +61,15 @@ jobs:
- name: Install npm apps (wait-port)
run: npm install -g wait-port

- name: Setup java ${{ matrix.java }}
uses: actions/setup-java@v1
- name: Setup java ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
# 'temurin' 'zulu' 'adopt' 'adopt-hotspot' 'adopt-openj9' 'liberica' 'microsoft'
distribution: 'temurin'
java-version: ${{ env.JAVA_VERSION }}

- name: Cache maven deps ~/.m2/repository
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ junitVersion = 5.6.0
logbackVersion = 1.2.3
lombokVersion = 1.18.12
selenideVersion = 5.7.0
testContainersVersion = 1.13.0
testContainersVersion = 1.18.3

0 comments on commit bd1b09b

Please sign in to comment.