From 3cbe16f0e8301eb25940420c32315db91f93ac13 Mon Sep 17 00:00:00 2001 From: Paramtamtam <7326800+tarampampam@users.noreply.github.com> Date: Sun, 2 Feb 2025 15:05:14 +0400 Subject: [PATCH] =?UTF-8?q?wip:=20=F0=9F=94=95=20temporary=20commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/tests.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 992b5bc..e588329 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,9 +24,39 @@ jobs: - {uses: actions/checkout@v4, with: {fetch-depth: 0}} - uses: gacts/gitleaks@v1 + filter: + name: Filter files + runs-on: ubuntu-latest + permissions: {pull-requests: read} + outputs: + docker: ${{ steps.filter.outputs.docker }} + helm: ${{ steps.filter.outputs.helm }} + steps: + - uses: dorny/paths-filter@v3 + id: filter + with: + filters: | + docker: [Dockerfile, '*docker*', '*3proxy*'] + helm: ['deployments/helm/**', '*kube*'] + + lint-charts: + name: Lint the chart + runs-on: ubuntu-latest + needs: [filter] + if: needs.filter.outputs.helm == 'true' + defaults: {run: {working-directory: ./deployments/helm}} + steps: + - uses: actions/checkout@v4 + - uses: azure/setup-helm@v4 + - run: helm dependency update . + - run: helm template . > /dev/null + - run: helm lint --strict . + build-image: name: Build the docker image runs-on: ubuntu-latest + needs: [filter] # since this is the initial step, we can filter out the rest of the jobs right here to skip them + if: needs.filter.outputs.docker == 'true' steps: - uses: actions/checkout@v4 - run: docker build -f ./Dockerfile --tag 3proxy:local .