feat: add support for generating changelog #165
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: "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_without_prometheus_grafana: | |
needs: | |
- shellcheck | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# I suppose we'd better update version pre kepler release. | |
# keep from current default version and latest version. | |
cluster_provider: [kind, microshift] | |
# So far we just have a single version for microshift | |
# in the future, we should considering have a local test for each cluster providers | |
steps: | |
- uses: actions/checkout@v3 | |
- name: start from local | |
run: | | |
export CLUSTER_PROVIDER=${{matrix.cluster_provider}} | |
./main.sh up | |
- name: verify | |
run: | | |
export CLUSTER_PROVIDER=${{matrix.cluster_provider}} | |
./verify.sh | |
# test local cluster with prometheus grafana | |
test_local_cluster_with_prometheus_grafana: | |
runs-on: ubuntu-latest | |
needs: test_local_cluster_without_prometheus_grafana | |
strategy: | |
matrix: | |
# I suppose we'd better update version pre kepler release. | |
# keep from current default version and latest version. | |
cluster_provider: [kind, microshift] | |
prometheus_operator_version: [v0.12.0] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: start from local | |
run: | | |
export PROMETHEUS_ENABLE=true | |
export PROMETHEUS_OPERATOR_VERSION=${{matrix.prometheus_operator_version}} | |
export GRAFANA_ENABLE=true | |
export CLUSTER_PROVIDER=${{matrix.cluster_provider}} | |
./main.sh up | |
- name: verify | |
run: | | |
export CLUSTER_PROVIDER=${{matrix.cluster_provider}} | |
./verify.sh |