-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test that builds and runs windup-shim
Signed-off-by: Fabian von Feilitzsch <[email protected]>
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: 'Run windup integration tests' | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
run-windup-test: | ||
name: Run windup tests | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: build base Dockerfile | ||
run: docker build -f Dockerfile -t quay.io/konveyor/jdtls-server-base:testing . | ||
- name: build testing Dockerfile | ||
run: docker build -f test/Dockerfile -t testing . | ||
- name: Run openshift tests | ||
run: docker run -it testing test /windup-rulesets/rules/rules-reviewed/openshift | ||
- name: Run azure tests | ||
run: docker run -it testing test /windup-rulesets/rules/rules-reviewed/azure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM golang:1.18 as builder | ||
|
||
WORKDIR /windup-shim | ||
RUN git clone -b master --single-branch https://github.com/fabianvf/windup-rulesets-yaml.git /windup-shim | ||
RUN go build -o windup-shim main.go | ||
|
||
WORKDIR /analyzer-lsp | ||
RUN git clone -b main --single-branch https://github.com/konveyor/analyzer-lsp.git /analyzer-lsp | ||
RUN make build | ||
|
||
FROM quay.io/konveyor/jdtls-server-base:testing | ||
|
||
COPY --from=builder /analyzer-lsp/konveyor-analyzer /usr/bin/konveyor-analyzer | ||
COPY --from=builder /analyzer-lsp/provider_container_settings.json /analyzer-lsp/provider_settings.json | ||
|
||
RUN microdnf install git -y | ||
RUN git clone -b master --depth=1 --progress --verbose --single-branch https://github.com/windup/windup-rulesets.git /windup-rulesets | ||
|
||
COPY --from=builder /windup-shim/windup-shim /usr/bin/windup-shim | ||
|
||
WORKDIR /windup-shim | ||
|
||
ENTRYPOINT ["windup-shim"] |