Skip to content

feat: Support cluster role #662

feat: Support cluster role

feat: Support cluster role #662

Workflow file for this run

name: CI Pipeline
on:
push:
branches:
- master
- main
pull_request_target:
types: [ opened, synchronize, reopened, ready_for_review ]
permissions: read-all
jobs:
build:
name: Build & Validate
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Validate Gradle wrapper
uses: gradle/[email protected]
- name: Build
uses: gradle/[email protected]
with:
arguments: build jacocoTestReport -i
- name: Report coverage
uses: codecov/codecov-action@v4
with:
name: branch-${{ github.ref }}
verbose: true
fail_ci_if_error: false
- name: Run codacy coverage reporter
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
- uses: actions/[email protected]
with:
name: Build Artifacts
path: |
**/build/reports
lint-test-helm:
name: Lint & Test chart
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/[email protected]
with:
version: v3.10.0
- uses: actions/setup-python@v5
with:
python-version: '3.9'
check-latest: true
- name: Set up chart-testing
uses: helm/[email protected]
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
fi
- name: Run chart-testing (lint)
run: ct lint --target-branch ${{ github.event.repository.default_branch }} --config .github/ct.yaml
- name: Create kind cluster
uses: helm/[email protected]
if: steps.list-changed.outputs.changed == 'true'
- name: Run chart-testing (install)
run: ct install
docs-test:
name: Test documentation
runs-on: ubuntu-latest
needs:
- lint-test-helm
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install dependencies
run: |
pip install \
mkdocs-material \
mkdocs-git-revision-date-localized-plugin
- name: Build documentation
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python -m mkdocs build