Skip to content

Commit

Permalink
[create-pull-request] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and github-actions[bot] committed Nov 20, 2024
1 parent 33167da commit 0cb9d49
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update-pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Set up Python
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
with:
python-version: 3.11
- name: Install pre-commit
Expand Down
29 changes: 23 additions & 6 deletions .github/workflows/validate-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,42 @@ on:
workflow_call: {}
workflow_dispatch: {}

env:
PRE_COMMIT_VERSION: "4.0.1"

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Set up Python
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
with:
python-version: 3.12
- name: Install golangci
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$HOME/.local/bin" v1.54.2
- name: Install helm-docs
uses: jaxxstorm/action-install-gh-release@25d5e2dd555cd74f1fab9ac1e6ea117acde2c0c4 # v1.12.0
run: curl -fsSL -o /tmp/hd.deb https://github.com/norwoodj/helm-docs/releases/download/v1.14.2/helm-docs_1.14.2_Linux_x86_64.deb && sudo dpkg -i /tmp/hd.deb && rm /tmp/hd.deb
- name: Install pipx
run: sudo apt-get install -y --no-install-recommends pipx
- name: Install pre-commit
run: pipx install pre-commit==${{ env.PRE_COMMIT_VERSION }}
- name: Cache pre-commit hooks
id: cache-pre-commit-hooks
uses: actions/cache@v4
env:
cache-name: pre-commit-hooks
with:
repo: norwoodj/helm-docs
tag: v1.11.0
cache: enable
path: ~/.cache/pre-commit
key: ${{ runner.os }}-pre-commit-${{ env.PRE_COMMIT_VERSION }}-hooks-${{ hashFiles('.pre-commit-config.yaml') }}
- if: ${{ steps.cache-pre-commit-hooks.outputs.cache-hit != 'true' }}
name: Install pre-commit hooks
run: pre-commit install-hooks
- name: Run pre-commit
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
continue-on-error: true
run: |
pipx ensurepath
pre-commit run --show-diff-on-failure --color=always --all-files
test:
runs-on: ubuntu-latest
needs: validate
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/gin-contrib/zap v1.1.4
github.com/gin-gonic/gin v1.10.0
github.com/go-redis/redis/v8 v8.11.5
github.com/prometheus/client_golang v1.20.4
github.com/prometheus/client_golang v1.20.5
github.com/stretchr/testify v1.9.0
go.uber.org/zap v1.27.0
gorm.io/driver/postgres v1.5.9
Expand Down

0 comments on commit 0cb9d49

Please sign in to comment.