[ui] Update commands #1597
Workflow file for this run
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
name: odo-podman-test | |
on: | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- 'docs/**' | |
- CONTRIBUTING.md | |
- OWNERS | |
- README.md | |
- USAGE_DATA.md | |
jobs: | |
ODO-PODMAN-TEST: | |
runs-on: ubuntu-latest | |
steps: | |
- run: cat /etc/os-release || true | |
- run: podman info | |
# TODO(rm3l): workaround for https://github.com/actions/runner-images/issues/7753 (caused by https://bugs.launchpad.net/ubuntu/+source/libpod/+bug/2024394). | |
# Remove this when this issue is fixed and available in the ubuntu runner image | |
- run: | | |
sudo apt install podman=3.4.4+ds1-1ubuntu1 --allow-downgrades | |
podman info | |
- 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 | |
env: | |
# This should ideally be a configuration in the GH repo (secret or variable). | |
# This is currently hard-coded because GH won't expose secrets or variables to PRs created from forks. | |
# Hopefully, variables (which are non-sensible by definition) will be passed to workflows triggered by PRs from forks. | |
# See https://github.com/community/community/discussions/44322 | |
PODMAN_EXEC_NODES: 10 | |
run: make test-integration-podman | |
- name: List and stop remaining containers | |
if: ${{ always() }} | |
run: | | |
podman pod ls --format '{{.Name}}' | xargs -I '{}' podman pod inspect '{}' | |
podman pod ls --format '{{.Name}}' | xargs podman pod stop || true |