Skip to content

Commit 8242ce1

Browse files
committed
Fix CI/CD
1 parent 730d7f8 commit 8242ce1

File tree

1 file changed

+30
-8
lines changed

1 file changed

+30
-8
lines changed

.github/workflows/validate.yml

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,47 @@ jobs:
2121
os: [ubuntu-latest]
2222
runs-on: ${{ matrix.os }}
2323
steps:
24+
- name: Get Docker Images
25+
shell: bash
26+
run: |
27+
docker pull gcr.io/distroless/java:11
28+
uname -a
29+
30+
- name: Set up JDK
31+
uses: actions/setup-java@v3
32+
with:
33+
java-version: '11'
34+
distribution: 'zulu'
35+
2436
- uses: actions/checkout@v3
2537
- uses: actions/setup-python@v4
2638
with:
2739
python-version: ${{ matrix.python-version }}
40+
41+
- name: Cache Maven packages
42+
uses: actions/cache@v3
43+
with:
44+
path: ~/.m2
45+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
46+
restore-keys: ${{ runner.os }}-m2
47+
2848
- name: Install Poetry
2949
shell: bash
3050
run: |
3151
pip install poetry==${{ matrix.poetry-version }}
52+
3253
- name: Install Dependencies
3354
run: python -m poetry install
55+
3456
- name: Configure Validation
3557
run: python -m poetry run make validate-setup
58+
3659
- name: Validate Sources
3760
run: python -m poetry run make validate
38-
- name: Start Container
39-
run: python -m poetry run bin/docker-utils.sh -u
40-
- name: Wait for Container Start
41-
run: sleep 30
42-
- name: Run Tests
43-
run: python -m poetry run make test
44-
- name: Stop Container
45-
run: python -m poetry run bin/docker-utils.sh -d
61+
62+
- name: Run test
63+
shell: bash
64+
run: |
65+
python -m poetry run \
66+
COHERENCE_VERSION=22.06.2 \
67+
make clean test-cluster-shutdown remove-app-images build-test-images test-cluster-startup just-wait test

0 commit comments

Comments
 (0)