Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -1,32 +1,11 @@
name: presubmit-pr-check
description: Presubmit Pull Request Verification
name: builders
# Presubmit build and deploy from sources tests

on:
pull_request:
branches: [ main ]

jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- name: Check out MicroShift upstream repository
uses: actions/checkout@v4

- name: Run ShellCheck
run: |
make _shellcheck

hadolint:
runs-on: ubuntu-latest
steps:
- name: Check out MicroShift upstream repository
uses: actions/checkout@v4

- name: Run Hadolint
run: |
make _hadolint

centos9-bootc-test:
centos9-bootc:
runs-on: ubuntu-latest
steps:
- name: Check out MicroShift upstream repository
Expand All @@ -45,7 +24,7 @@ jobs:
bootc-image-tag: stream9
build: bootc-image

centos10-bootc-test:
centos10-bootc:
runs-on: ubuntu-latest
steps:
- name: Check out MicroShift upstream repository
Expand All @@ -64,7 +43,7 @@ jobs:
bootc-image-tag: stream10
build: bootc-image

fedora-bootc-test:
fedora-bootc:
runs-on: ubuntu-latest
steps:
- name: Check out MicroShift upstream repository
Expand All @@ -83,7 +62,7 @@ jobs:
bootc-image-tag: latest
build: bootc-image

isolated-network-kindnet-test:
isolated-network-kindnet:
runs-on: ubuntu-latest
steps:
- name: Check out MicroShift upstream repository
Expand All @@ -102,7 +81,7 @@ jobs:
ovnk-networking: 0
build: bootc-image

isolated-network-ovnk-test:
isolated-network-ovnk:
runs-on: ubuntu-latest
steps:
- name: Check out MicroShift upstream repository
Expand All @@ -120,36 +99,3 @@ jobs:
isolated-network: 1
ovnk-networking: 1
build: bootc-image

quick-start-and-clean:
runs-on: ubuntu-latest
steps:
- name: Check out MicroShift upstream repository
uses: actions/checkout@v4

- name: Run the quick start script
shell: bash
run: |
set -x
cat ./src/quickstart.sh | sudo bash -x

# Wait until the MicroShift service is ready and healthy
make run-ready
make run-healthy

- name: Run the quick clean script
shell: bash
run: |
set -x
cat ./src/quickclean.sh | sudo bash -x

# Verify the container and its image are removed
sudo podman ps -a | grep microshift-okd && exit 1
sudo podman images | grep microshift-okd && exit 1

# Verify the LVM volume group and backing storage are removed
sudo vgs | grep myvg1 && exit 1
if [ -e /var/lib/microshift-okd ]; then
ls -la /var/lib/microshift-okd/
exit 1
fi
39 changes: 39 additions & 0 deletions .github/workflows/installers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: installers
# Presubmit prebuilt packages tests.

on:
pull_request:

jobs:
quick-start-and-clean:
runs-on: ubuntu-latest
steps:
- name: Check out MicroShift upstream repository
uses: actions/checkout@v4

- name: Run the quick start script
shell: bash
run: |
set -xeuo pipefail
sudo bash -xeuo pipefail < ./src/quickstart.sh

# Wait until the MicroShift service is ready and healthy
make run-ready
make run-healthy

- name: Run the quick clean script
shell: bash
run: |
set -xeuo pipefail
sudo bash -xeuo pipefail < ./src/quickstart.sh

# Verify the container and its image are removed
sudo podman ps -a | grep microshift-okd && exit 1
sudo podman images | grep microshift-okd && exit 1

# Verify the LVM volume group and backing storage are removed
sudo vgs | grep myvg1 && exit 1
if [ -e /var/lib/microshift-okd ]; then
ls -la /var/lib/microshift-okd/
exit 1
fi
26 changes: 26 additions & 0 deletions .github/workflows/linters.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: linters
# Presubmit static checks and linting

on:
pull_request:

jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- name: Check out MicroShift upstream repository
uses: actions/checkout@v4

- name: Run ShellCheck
run: |
make _shellcheck

hadolint:
runs-on: ubuntu-latest
steps:
- name: Check out MicroShift upstream repository
uses: actions/checkout@v4

- name: Run Hadolint
run: |
make _hadolint
4 changes: 0 additions & 4 deletions src/quickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ function run_bootc_image() {
fi
sleep 1
done

# Update kubeconfig in the container user home directory
podman exec microshift-okd /bin/mkdir -p /root/.kube
podman exec microshift-okd /bin/cp "${kubeconfig}" /root/.kube/config
}

# Check if the script is running as root
Expand Down
Loading