2023-04-14 15:21:00 -05:00
|
|
|
name: check-and-test
|
|
|
|
|
|
|
|
on:
|
|
|
|
- pull_request
|
|
|
|
|
2023-10-13 11:04:27 -05:00
|
|
|
env:
|
|
|
|
# renovate: datasource=github-releases depName=helm-unittest/helm-unittest
|
|
|
|
HELM_UNITTEST_VERSION: "0.3.3"
|
|
|
|
|
2023-04-14 15:21:00 -05:00
|
|
|
jobs:
|
|
|
|
check-and-test:
|
|
|
|
runs-on: ubuntu-latest
|
2023-10-13 11:04:27 -05:00
|
|
|
container: alpine/helm:3.12.3
|
2023-04-14 15:21:00 -05:00
|
|
|
steps:
|
|
|
|
- name: install tools
|
|
|
|
run: |
|
2023-10-13 11:04:27 -05:00
|
|
|
apk update
|
|
|
|
apk add --update make nodejs npm yamllint
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: install chart dependencies
|
|
|
|
run: helm dependency build
|
2023-04-14 15:21:00 -05:00
|
|
|
- name: lint
|
|
|
|
run: helm lint
|
|
|
|
- name: template
|
2023-10-13 11:04:27 -05:00
|
|
|
run: helm template --debug gitea-helm .
|
2023-04-14 15:21:00 -05:00
|
|
|
- name: unit tests
|
|
|
|
run: |
|
2023-10-13 11:04:27 -05:00
|
|
|
helm plugin install --version ${{ env.HELM_UNITTEST_VERSION }} https://github.com/helm-unittest/helm-unittest
|
2023-04-14 15:21:00 -05:00
|
|
|
make unittests
|
|
|
|
- name: verify readme
|
|
|
|
run: |
|
|
|
|
make readme
|
|
|
|
git diff --exit-code --name-only README.md
|
|
|
|
- name: yaml lint
|
|
|
|
uses: https://github.com/ibiqlik/action-yamllint@v3
|