From 3662bd614e3c59ff752b26d5a1e0d66810d58627 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Tue, 4 Nov 2025 12:18:19 -0600 Subject: [PATCH] remove lint --- .gitea/workflows/lint-test-docker.yaml | 80 ------------------------- .gitea/workflows/lint-test-helm.yaml | 82 -------------------------- 2 files changed, 162 deletions(-) delete mode 100644 .gitea/workflows/lint-test-docker.yaml delete mode 100644 .gitea/workflows/lint-test-helm.yaml diff --git a/.gitea/workflows/lint-test-docker.yaml b/.gitea/workflows/lint-test-docker.yaml deleted file mode 100644 index 903f7c25d..000000000 --- a/.gitea/workflows/lint-test-docker.yaml +++ /dev/null @@ -1,80 +0,0 @@ -name: lint-test-docker - -on: - push: - branches: - - main - paths: - - 'hosts/**' - - ! 'hosts/archive' - - pull_request: - branches: - - main - paths: - - 'hosts/**' - - ! 'hosts/archive' - -jobs: - docker-lint: - runs-on: ubuntu-24.04 - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Check Branch Exists - id: check-branch-exists - uses: GuillaumeFalourd/branch-exists@v1.1 - with: - branch: "origin/${{ github.base_ref }}" - - - name: Branch Does Not Exist - if: steps.check-branch-exists.outputs.exists == 'false' - run: echo "Branch origin/${{ github.base_ref }} was not found, likely already merged" - - - - name: Set up Node.js - if: steps.check-branch-exists.outputs.exists == 'true' - uses: actions/setup-node@v4 - with: - node-version: '22' - - - name: Lint Docker Compose - if: steps.check-branch-exists.outputs.exists == 'true' - run: | - set -e # Exit immediately if a command exits with a non-zero status. - - TARGET_BRANCH="origin/${{ github.base_ref }}" - echo ">> Target branch for diff is: $TARGET_BRANCH" - - CHANGED_FILES=$(git diff --name-only "$TARGET_BRANCH" -- 'hosts/**') - - echo ">> Found changed files:" - echo "$CHANGED_FILES" - - # For each changed file, find its parent chart directory (the one with compose.yaml). - # Then, create a unique list of those directories. - CHANGED_COMPOSE=$(echo "$CHANGED_FILES" | while read -r file; do - dir=$(dirname "$file") - while [[ "$dir" != "." && ! -f "$dir/compose.yaml" ]]; do - dir=$(dirname "$dir") - done - if [[ "$dir" != "." ]]; then - echo "$dir" - fi - done | sort -u) - - if [[ -z "$CHANGED_COMPOSE" ]]; then - echo ">> Could not determine changed compose files. This will happen if only files outside a compose file were changed." - exit 0 - fi - - echo ">> Running dclint on changed compose files:" - echo "$CHANGED_COMPOSE" - - echo "$CHANGED_COMPOSE" | while read -r compose; do - echo ">> Linting $compose ..." - npx dclint $compose - done diff --git a/.gitea/workflows/lint-test-helm.yaml b/.gitea/workflows/lint-test-helm.yaml deleted file mode 100644 index dcabef1b2..000000000 --- a/.gitea/workflows/lint-test-helm.yaml +++ /dev/null @@ -1,82 +0,0 @@ -name: lint-test-helm - -on: - push: - branches: - - main - paths: - - 'clusters/**' - - ! 'clusters/*/archive' - - pull_request: - branches: - - main - paths: - - 'clusters/**' - - ! 'clusters/*/archive' - -jobs: - helm-lint: - runs-on: ubuntu-24.04 - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Check Branch Exists - id: check-branch-exists - uses: GuillaumeFalourd/branch-exists@v1.1 - with: - branch: "origin/${{ github.base_ref }}" - - - name: Branch Does Not Exist - if: steps.check-branch-exists.outputs.exists == 'false' - run: echo "Branch origin/${{ github.base_ref }} was not found, likely already merged" - - - name: Set up Helm - if: steps.check-branch-exists.outputs.exists == 'true' - uses: azure/setup-helm@v4 - with: - token: ${{ secrets.GITEA_TOKEN }} - version: latest - - - name: Lint Helm Chart - if: steps.check-branch-exists.outputs.exists == 'true' - run: | - set -e # Exit immediately if a command exits with a non-zero status. - - TARGET_BRANCH="origin/${{ github.base_ref }}" - echo ">> Target branch for diff is: $TARGET_BRANCH" - - CHANGED_FILES=$(git diff --name-only "$TARGET_BRANCH" -- 'clusters/**') - - echo ">> Found changed files:" - echo "$CHANGED_FILES" - - # For each changed file, find its parent chart directory (the one with Chart.yaml). - # Then, create a unique list of those directories. - CHANGED_CHARTS=$(echo "$CHANGED_FILES" | while read -r file; do - dir=$(dirname "$file") - while [[ "$dir" != "." && ! -f "$dir/Chart.yaml" ]]; do - dir=$(dirname "$dir") - done - if [[ "$dir" != "." ]]; then - echo "$dir" - fi - done | sort -u) - - if [[ -z "$CHANGED_CHARTS" ]]; then - echo ">> Could not determine changed charts. This could happen if only files outside a chart were changed." - exit 0 - fi - - echo ">> Running helm lint on changed charts:" - echo "$CHANGED_CHARTS" - - echo "$CHANGED_CHARTS" | while read -r chart; do - echo ">> Building dependency for "$chart" ..." - helm dependency build "$chart" - echo ">> Linting $chart..." - helm lint "$chart" - done