Merge pull request #67 from SamYuan1990/updateReadMemar #183
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: "units-test" | |
on: | |
# works for mannual, in case of github agent updated. | |
# we can run mannually to see if it can be fixed by update version of | |
# - kubectl | |
# - k8s cluster provider's | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
- 'releases/*' | |
jobs: | |
shellcheck: | |
name: Shellcheck | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run ShellCheck | |
uses: ludeeus/action-shellcheck@master | |
env: | |
SHELLCHECK_OPTS: -x | |
# test local cluster without prometheus grafana | |
test_local_cluster: | |
needs: | |
- shellcheck | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- cluster_provider: kind | |
prometheus_operator_version: v0.12.0 | |
PROMETHEUS_ENABLE: false | |
GRAFANA_ENABLE: false | |
TEKTON_ENABLE: false | |
- cluster_provider: kind | |
prometheus_operator_version: v0.12.0 | |
PROMETHEUS_ENABLE: true | |
GRAFANA_ENABLE: true | |
TEKTON_ENABLE: false | |
- cluster_provider: kind | |
prometheus_operator_version: v0.12.0 | |
PROMETHEUS_ENABLE: false | |
GRAFANA_ENABLE: false | |
TEKTON_ENABLE: true | |
- cluster_provider: kind | |
prometheus_operator_version: v0.12.0 | |
PROMETHEUS_ENABLE: true | |
GRAFANA_ENABLE: true | |
TEKTON_ENABLE: true | |
- cluster_provider: microshift | |
prometheus_operator_version: v0.12.0 | |
PROMETHEUS_ENABLE: false | |
GRAFANA_ENABLE: false | |
TEKTON_ENABLE: false | |
- cluster_provider: microshift | |
prometheus_operator_version: v0.12.0 | |
PROMETHEUS_ENABLE: true | |
GRAFANA_ENABLE: true | |
TEKTON_ENABLE: false | |
#- cluster_provider: microshift | |
# prometheus_operator_version: v0.12.0 | |
# PROMETHEUS_ENABLE: false | |
# GRAFANA_ENABLE: false | |
# TEKTON_ENABLE: true | |
#- cluster_provider: microshift | |
# prometheus_operator_version: v0.12.0 | |
# PROMETHEUS_ENABLE: true | |
# GRAFANA_ENABLE: true | |
# TEKTON_ENABLE: true | |
steps: | |
- uses: actions/checkout@v3 | |
- name: start from local | |
run: | | |
export PROMETHEUS_ENABLE=${{matrix.PROMETHEUS_ENABLE}} | |
export PROMETHEUS_OPERATOR_VERSION=${{matrix.prometheus_operator_version}} | |
export GRAFANA_ENABLE=${{matrix.GRAFANA_ENABLE}} | |
export CLUSTER_PROVIDER=${{matrix.cluster_provider}} | |
export TEKTON_ENABLE=${{matrix.TEKTON_ENABLE}} | |
./main.sh up | |
- name: verify | |
run: | | |
export CLUSTER_PROVIDER=${{matrix.cluster_provider}} | |
./verify.sh |