Skip to content

Commit f08d34a

Browse files
committed
refactor
1 parent 89496d3 commit f08d34a

File tree

1 file changed

+4
-45
lines changed

1 file changed

+4
-45
lines changed

.github/workflows/unit-tests.yml

Lines changed: 4 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -8,48 +8,7 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11-
unit-tests:
12-
name: Unit Test - ES ${{ matrix.elastic-stack-version }} ${{ matrix.snapshot && '(Snapshot)' || '' }}
13-
runs-on: ubuntu-latest
14-
strategy:
15-
fail-fast: false
16-
matrix:
17-
elastic-stack-version:
18-
- "9.current"
19-
- "9.previous"
20-
- "8.current"
21-
- "8.previous"
22-
- "7.current"
23-
docker-env: ["dockerjdk21.env"]
24-
snapshot: [false]
25-
exclude:
26-
# 7.x doesn't support JDK 21, use default JDK
27-
- elastic-stack-version: "7.current"
28-
docker-env: "dockerjdk21.env"
29-
include:
30-
# 7.current with default JDK
31-
- elastic-stack-version: "7.current"
32-
docker-env: ""
33-
snapshot: false
34-
# Main snapshot with JDK 21
35-
- elastic-stack-version: "main"
36-
docker-env: "dockerjdk21.env"
37-
snapshot: true
38-
39-
steps:
40-
- name: Checkout code
41-
uses: actions/checkout@v6
42-
43-
- name: Setup test environment
44-
id: setup
45-
uses: logstash-plugins/.ci/setup@feature/github-actions
46-
with:
47-
elastic-stack-version: ${{ matrix.elastic-stack-version }}
48-
snapshot: ${{ matrix.snapshot || false }}
49-
docker-env: ${{ matrix.docker-env || '' }}
50-
51-
- name: Run unit tests
52-
if: steps.setup.outputs.skip != 'true'
53-
run: bash .ci/docker-run.sh
54-
55-
# NOTE: no cleanup needed when running on ephemeral runners
11+
tests:
12+
uses: logstash-plugins/.ci/.github/workflows/test.yml@feature/github-actions
13+
permissions:
14+
contents: read

0 commit comments

Comments
 (0)