Skip to content

Commit dc9f0e5

Browse files
committed
add test that builds and runs windup-shim
Signed-off-by: Fabian von Feilitzsch <[email protected]>
1 parent f4ca626 commit dc9f0e5

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: 'Run windup integration tests'
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
pull_request:
7+
8+
jobs:
9+
run-windup-test:
10+
name: Run windup tests
11+
runs-on: ubuntu-20.04
12+
strategy:
13+
fail-fast: false
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: build base Dockerfile
17+
run: docker build -f Dockerfile -t quay.io/konveyor/jdtls-server-base:testing .
18+
- name: build testing Dockerfile
19+
run: docker build -f test/Dockerfile -t testing .
20+
- name: Run openshift tests
21+
run: docker run -it testing test /windup-rulesets/rules/rules-reviewed/openshift
22+
- name: Run azure tests
23+
run: docker run -it testing test /windup-rulesets/rules/rules-reviewed/azure

test/Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM golang:1.18 as builder
2+
3+
WORKDIR /windup-shim
4+
RUN git clone -b master --single-branch https://github.com/fabianvf/windup-rulesets-yaml.git /windup-shim
5+
RUN go build -o windup-shim main.go
6+
7+
WORKDIR /analyzer-lsp
8+
RUN git clone -b main --single-branch https://github.com/konveyor/analyzer-lsp.git /analyzer-lsp
9+
RUN make build
10+
11+
FROM quay.io/konveyor/jdtls-server-base:testing
12+
13+
COPY --from=builder /analyzer-lsp/konveyor-analyzer /usr/bin/konveyor-analyzer
14+
COPY --from=builder /analyzer-lsp/provider_container_settings.json /analyzer-lsp/provider_settings.json
15+
16+
RUN microdnf install git -y
17+
RUN git clone -b master --depth=1 --progress --verbose --single-branch https://github.com/windup/windup-rulesets.git /windup-rulesets
18+
19+
COPY --from=builder /windup-shim/windup-shim /usr/bin/windup-shim
20+
21+
WORKDIR /windup-shim
22+
23+
ENTRYPOINT ["windup-shim"]

0 commit comments

Comments
 (0)