mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-08-23 22:26:29 +00:00
Bumps the actions group with 4 updates in the / directory: [stefanprodan/timoni/actions/setup](https://github.com/stefanprodan/timoni), [fluxcd/flux2/action](https://github.com/fluxcd/flux2), [docker/login-action](https://github.com/docker/login-action) and [actions/attest](https://github.com/actions/attest). Updates `stefanprodan/timoni/actions/setup` from 0.27.0 to 0.27.1 - [Release notes](https://github.com/stefanprodan/timoni/releases) - [Commits](https://github.com/stefanprodan/timoni/compare/69e421aebbed979ded721df0da2a54428c5b4b9c...1aded1483439b39f391d0db0177a9f3912baee59) Updates `fluxcd/flux2/action` from 2.9.2 to 2.9.3 - [Release notes](https://github.com/fluxcd/flux2/releases) - [Commits](https://github.com/fluxcd/flux2/compare/6a650dba1b4ae9945185c4bb3cc3f386aaf71b3d...16602fa989daa99762f1c6d1186ae2ad1c735815) Updates `docker/login-action` from 4.4.0 to 4.6.0 - [Release notes](https://github.com/docker/login-action/releases) - [Commits](https://github.com/docker/login-action/compare/af1e73f918a031802d376d3c8bbc3fe56130a9b0...dbcb813823bdd20940b903addbd779551569679f) Updates `actions/attest` from 4.2.0 to 4.2.1 - [Release notes](https://github.com/actions/attest/releases) - [Changelog](https://github.com/actions/attest/blob/main/RELEASE.md) - [Commits](https://github.com/actions/attest/compare/f7c74d28b9d84cb8768d0b8ca14a4bac6ef463e6...508db95dd578ae2727ebd6217d5ba78e4fbda05d) --- updated-dependencies: - dependency-name: stefanprodan/timoni/actions/setup dependency-version: 0.27.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: fluxcd/flux2/action dependency-version: 2.9.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: docker/login-action dependency-version: 4.6.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: actions/attest dependency-version: 4.2.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com>
69 lines
2.1 KiB
YAML
69 lines
2.1 KiB
YAML
name: test
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
HELM_VERSION: 4.2.3
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- uses: ./.github/actions/runner-cleanup
|
|
- name: Setup Go
|
|
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
|
with:
|
|
go-version: 1.26.x
|
|
cache-dependency-path: |
|
|
**/go.sum
|
|
**/go.mod
|
|
- name: Setup Flux Schema CLI
|
|
uses: fluxcd/flux-schema/actions/setup@9946a7cd4487b6d47cc9cd27d19ec8a274941af6 # v0.11.0
|
|
- name: Setup Helm
|
|
uses: azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5.0.1
|
|
with:
|
|
version: v${{ env.HELM_VERSION }}
|
|
- name: Setup CUE
|
|
uses: cue-lang/setup-cue@a93fa358375740cd8b0078f76355512b9208acb1 # v1.0.1
|
|
- name: Setup Timoni
|
|
uses: stefanprodan/timoni/actions/setup@1aded1483439b39f391d0db0177a9f3912baee59 # v0.27.1
|
|
- name: Run unit tests
|
|
run: make test
|
|
- name: Validate Helm chart
|
|
run: |
|
|
helm lint ./charts/podinfo/
|
|
helm template ./charts/podinfo/ | flux-schema validate -s ecosystem --verbose
|
|
- name: Validate Kustomize overlay
|
|
run: |
|
|
kubectl kustomize ./kustomize/ | flux-schema validate -s ecosystem --verbose
|
|
- name: Verify CUE formatting
|
|
working-directory: ./timoni/podinfo
|
|
run: |
|
|
cue fmt ./...
|
|
status=$(git status . --porcelain)
|
|
[[ -z "$status" ]] || {
|
|
echo "CUE files are not correctly formatted"
|
|
echo "$status"
|
|
git diff
|
|
exit 1
|
|
}
|
|
- name: Validate Timoni module
|
|
working-directory: ./timoni/podinfo
|
|
run: |
|
|
timoni mod lint .
|
|
timoni build podinfo . -f debug_values.cue | flux-schema validate -s ecosystem --verbose
|
|
- name: Check if working tree is dirty
|
|
run: |
|
|
if [[ $(git diff --stat) != '' ]]; then
|
|
echo 'run make test and commit changes'
|
|
exit 1
|
|
fi
|