Files
helm-actions/.gitea/workflows/test-pr.yml
Renovate Bot 0dbbe94f0a
Some checks failed
changelog / changelog (push) Has been cancelled
check-and-test / check-and-test (push) Has been cancelled
chore(deps): update actions/checkout action to v7 (#164)
Reviewed-on: https://gitea.com/gitea/helm-actions/pulls/164
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2026-06-27 19:57:19 +00:00

53 lines
1.5 KiB
YAML

name: check-and-test
"on":
"workflow_dispatch":
pull_request:
branches:
- "*"
push:
branches:
- main
env:
# renovate: datasource=github-releases depName=helm-unittest/helm-unittest
HELM_UNITTEST_VERSION: "v1.1.1"
jobs:
check-and-test:
runs-on: ubuntu-latest
container: alpine/helm:4.2.1
steps:
- name: install tools
run: |
apk update
apk add --update bash make nodejs npm yamllint ncurses
- name: Install pnpm
uses: pnpm/action-setup@v6
with:
version: 11
- uses: actions/checkout@v7
- name: install chart dependencies
run: helm dependency build
- name: lint
run: helm lint .
- name: template
run: helm template --debug gitea-actions .
- name: prepare unit test environment
run: |
helm plugin install --version ${{ env.HELM_UNITTEST_VERSION }} --verify=false \
https://github.com/helm-unittest/helm-unittest.git # https://github.com/helm-unittest/helm-unittest?tab=readme-ov-file#install
git submodule update --init --recursive
- name: unit tests
env:
TERM: xterm
run: |
make unittests-helm
- name: verify readme
run: |
make readme
git diff --exit-code --name-only README.md
- name: yaml lint
# uses: ibiqlik/action-yamllint@v3 # Github / Act
uses: https://github.com/ibiqlik/action-yamllint@v3 # Gitea