Skip to content

Remove kustomize dependency (#54750) #1

Remove kustomize dependency (#54750)

Remove kustomize dependency (#54750) #1

Workflow file for this run

name: Validate
on:
pull_request:
push:
branches:
- "main"
- "release/v*"
permissions: {}
jobs:
validate:
runs-on: runs-on,runner=8cpu-linux-x64,run-id=${{ github.run_id }}
env:
GOLANG_CI_LINT_VERSION: v2.7.2
GOLANG_VERSION: '1.25'
steps:
- name: Git safe directory
run: git config --global --add safe.directory "$PWD"
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version: "${{ env.GOLANG_VERSION }}"
cache: ${{ github.event_name == 'pull_request' }}
- name: Run golangci-lint
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
with:
version: ${{ env.GOLANG_CI_LINT_VERSION }}
args: -v
only-new-issues: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && github.event.before != '0000000000000000000000000000000000000000') }}
skip-cache: false
# only use cache on pull requests
- name: Set up Python
if: github.event_name == 'pull_request'
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.11'
cache: 'pip'
# skip cache on push
- name: Set up Python
if: github.event_name != 'pull_request'
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.11'
- name: Install Python dependencies
run: |
pip install --upgrade pip
pip install tox flake8
- name: Validate (modules and flake8)
run: ./scripts/validate