Skip to content

Commit

Permalink
Adding Github Actions for podman testing (redhat-developer#6385)
Browse files Browse the repository at this point in the history
* add ansible,bash scripts and documentation for podman testing

Signed-off-by: anandrkskd <[email protected]>

* update documentation for automated podman testing

Signed-off-by: anandrkskd <[email protected]>

* Fix: log fetching from vsi

Signed-off-by: anandrkskd <[email protected]>

* add ssh fetch

Signed-off-by: anandrkskd <[email protected]>

* test podman on Github Actions

Signed-off-by: anandrkskd <[email protected]>

* remove podman on ibmcloud files

Signed-off-by: anandrkskd <[email protected]>

* remove podman config check (to test edge case)

Signed-off-by: anandrkskd <[email protected]>

* remove reporter, remove hardcoded component name

Signed-off-by: anandrkskd <[email protected]>

* Update .github/workflows/podman-test.yaml

Co-authored-by: Armel Soro <[email protected]>

Signed-off-by: anandrkskd <[email protected]>
Co-authored-by: Armel Soro <[email protected]>
  • Loading branch information
anandrkskd and rm3l authored Jan 5, 2023
1 parent 0fa6153 commit edcd2c7
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/podman-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: odo-podman-test
on:
pull_request:
branches:
- main

jobs:
ODO-PODMAN-TEST:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v3

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'

- name: Build odo
run: make install

- name: Run Integration tests
# TODO Make the job fail when this step fails once we check the compatibility with podman v3.
# See https://github.com/redhat-developer/odo/issues/6446
continue-on-error: true
run: |
make test-integration-podman
11 changes: 11 additions & 0 deletions tests/examples/config/containers.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[engine]
active_service = "podman-machine-default"
[engine.service_destinations]
[engine.service_destinations.podman-machine-default]
uri = "ssh://core@localhost:43957/run/user/1000/podman/podman.sock"
identity = "~/.ssh/podman-machine-default"
is_machine = true
[engine.service_destinations.podman-machine-default-root]
uri = "ssh://root@localhost:43957/run/podman/podman.sock"
identity = "~/.ssh/podman-machine-default"
is_machine = true
2 changes: 0 additions & 2 deletions tests/integration/cmd_delete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ var _ = Describe("odo delete command tests", func() {
ctx := ctx
When(ctx.title, func() {
BeforeEach(func() {
// Hardcoded names from `ctx.devfileName`
cmpName = "mynodejs"
deploymentName = "my-component"
serviceName = "my-cs"
helper.CopyExample(filepath.Join("source", "devfiles", "nodejs", "project"), commonVar.Context)
Expand Down

0 comments on commit edcd2c7

Please sign in to comment.