forked from Gitea/helm-actions

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://github.com/actions/checkout) | action | major | `v4` -> `v5` | | [actions/checkout](https://github.com/actions/checkout) | action | major | `v4.2.2` -> `v5` | --- ### Release Notes <details> <summary>actions/checkout (actions/checkout)</summary> ### [`v5`](https://github.com/actions/checkout/compare/v4...v5) [Compare Source](https://github.com/actions/checkout/compare/v4...v5) </details> --- ### Configuration 📅 **Schedule**: Branch creation - Only on Sunday and Saturday ( * * * * 0,6 ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xOC4xIiwidXBkYXRlZEluVmVyIjoiNDEuMTguMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsia2luZC9kZXBlbmRlbmN5Il19--> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-on: https://gitea.com/gitea/helm-actions/pulls/53 Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.com> Reviewed-by: DaanSelen <daanselen@noreply.gitea.com> Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Renovate Bot <renovate-bot@gitea.com> Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
name: check-and-test
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- "*"
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
env:
|
|
# renovate: datasource=github-releases depName=helm-unittest/helm-unittest
|
|
HELM_UNITTEST_VERSION: "v0.7.2"
|
|
|
|
jobs:
|
|
check-and-test:
|
|
runs-on: ubuntu-latest
|
|
container: alpine/helm:3.17.1
|
|
steps:
|
|
- name: install tools
|
|
run: |
|
|
apk update
|
|
apk add --update bash make nodejs npm yamllint ncurses
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10
|
|
- uses: actions/checkout@v5
|
|
- 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 }} https://github.com/helm-unittest/helm-unittest
|
|
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: https://github.com/ibiqlik/action-yamllint@v3
|