diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 32cd4a5..77c9a55 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -13,7 +13,7 @@ env: IMAGE_NAME: forust/telegram-scraper jobs: - lint: + lint-prettier: runs-on: [self-hosted, linux, arch, homelab] steps: - name: Checkout repository @@ -39,6 +39,12 @@ jobs: node:22-alpine \ sh -lc 'npx --yes prettier@3 --check --ignore-unknown "$@"' sh "${prettier_files[@]}" + lint-ruff: + runs-on: [self-hosted, linux, arch, homelab] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Lint Python with Ruff shell: bash run: | @@ -48,6 +54,12 @@ jobs: ghcr.io/astral-sh/ruff:latest \ check . + lint-yaml: + runs-on: [self-hosted, linux, arch, homelab] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Lint YAML syntax shell: bash run: | @@ -57,6 +69,12 @@ jobs: cytopia/yamllint:latest \ -c .yamllint . + lint-dockerfiles: + runs-on: [self-hosted, linux, arch, homelab] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Lint Dockerfiles shell: bash run: | @@ -82,15 +100,6 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Lint YAML syntax - shell: bash - run: | - docker run --rm \ - -v "$PWD:/work" \ - -w /work \ - cytopia/yamllint:latest \ - -c .yamllint . - - name: Validate Kubernetes manifests shell: bash run: | @@ -114,7 +123,7 @@ jobs: "${manifests[@]}" publish: - needs: [lint, validate] + needs: [lint-prettier, lint-ruff, lint-yaml, lint-dockerfiles, validate] if: github.event_name != 'pull_request' runs-on: [self-hosted, linux, arch, homelab] steps: diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 32cd4a5..77c9a55 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,7 +13,7 @@ env: IMAGE_NAME: forust/telegram-scraper jobs: - lint: + lint-prettier: runs-on: [self-hosted, linux, arch, homelab] steps: - name: Checkout repository @@ -39,6 +39,12 @@ jobs: node:22-alpine \ sh -lc 'npx --yes prettier@3 --check --ignore-unknown "$@"' sh "${prettier_files[@]}" + lint-ruff: + runs-on: [self-hosted, linux, arch, homelab] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Lint Python with Ruff shell: bash run: | @@ -48,6 +54,12 @@ jobs: ghcr.io/astral-sh/ruff:latest \ check . + lint-yaml: + runs-on: [self-hosted, linux, arch, homelab] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Lint YAML syntax shell: bash run: | @@ -57,6 +69,12 @@ jobs: cytopia/yamllint:latest \ -c .yamllint . + lint-dockerfiles: + runs-on: [self-hosted, linux, arch, homelab] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Lint Dockerfiles shell: bash run: | @@ -82,15 +100,6 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Lint YAML syntax - shell: bash - run: | - docker run --rm \ - -v "$PWD:/work" \ - -w /work \ - cytopia/yamllint:latest \ - -c .yamllint . - - name: Validate Kubernetes manifests shell: bash run: | @@ -114,7 +123,7 @@ jobs: "${manifests[@]}" publish: - needs: [lint, validate] + needs: [lint-prettier, lint-ruff, lint-yaml, lint-dockerfiles, validate] if: github.event_name != 'pull_request' runs-on: [self-hosted, linux, arch, homelab] steps: