-
Notifications
You must be signed in to change notification settings - Fork 45
42 lines (33 loc) · 1.31 KB
/
demo-testing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Demo Testing
on: ["push", "pull_request"]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build image
run: podman build -t quay.io/konveyor/analyzer-lsp:latest .
- name: build demo image
run: podman build -f demo.Dockerfile -t localhost/testing:latest
- name: run demo image and ensure violations output unchanged
run: |
podman run -v $(pwd)/demo-output.yaml:/analyzer-lsp/output.yaml:Z localhost/testing:latest
git diff --exit-code demo-output.yaml
- name: run demo image and ensure dependency output unchanged
run: |
podman run --entrypoint /usr/bin/konveyor-analyzer-dep -v $(pwd)/demo-dep-output.yaml:/analyzer-lsp/demo-dep-output.yaml:Z localhost/testing:latest --output-file=demo-dep-output.yaml
git diff --exit-code demo-dep-output.yaml
- name: save image
run: |
podman save -o /tmp/analyzer-lsp.tar quay.io/konveyor/analyzer-lsp:latest
- name: Upload image as artifact
uses: actions/upload-artifact@v3
with:
name: analyzer-lsp
path: /tmp/analyzer-lsp.tar
retention-days: 1
e2e:
needs: test
uses: konveyor/ci/.github/workflows/global-ci.yml@main
with:
component_name: analyzer-lsp