Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add test that builds and runs windup-shim for openshift and azure #41

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/ci.yaml
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 testing test /windup-rulesets/rules/rules-reviewed/openshift
- name: Run azure tests
run: docker run testing test /windup-rulesets/rules/rules-reviewed/azure
23 changes: 23 additions & 0 deletions test/Dockerfile
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"]