Skip to content

Add auto-approve option both for install and uninstall #906

Add auto-approve option both for install and uninstall

Add auto-approve option both for install and uninstall #906

Workflow file for this run

name: CI
on:
push:
pull_request:
env:
HELM_VERSION: v3.9.0
GOLANGCI_LINT_VERSION: v1.53.3
GOLANGCI_LINT_TIMEOUT: 10m
jobs:
lint-go:
if: ${{ !contains(github.event.commits[0].message, '[skip-ci]') }}
runs-on: ubuntu-latest
name: Lint Go code
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
cache: true
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
args: --timeout=${{ env.GOLANGCI_LINT_TIMEOUT }}
- name: Verify Go modules
run: go mod verify
if: always()
- name: Run Go import formatting
run: make go-import-fmt
if: always()
- name: Detect git changes
if: always()
run: |
if [[ $(git diff --stat) != '' ]]; then
echo -e '❌ \033[0;31m. Run 'make lint-fix'.\033[0m'
git diff --color
exit 1
else
echo '✔ No issues detected. Have a nice day :-)'
fi
test:
if: ${{ !contains(github.event.commits[0].message, '[skip-ci]') }}
runs-on: ubuntu-latest
name: Run tests
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
cache: true
- name: Run tests
run: make test
build:
if: ${{ !contains(github.event.commits[0].message, '[skip-ci]') }}
runs-on: ubuntu-latest
needs:
- lint-go
- test
name: Build app
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
cache: true
- name: Build
run: make