From 2247fffc89fc698a1ecb3b0817385b069ddaa92c Mon Sep 17 00:00:00 2001 From: Vincent Mercier Date: Thu, 12 Oct 2023 16:54:53 +0200 Subject: [PATCH] disable-other-tests --- .github/workflows/linter.yaml | 51 ------------------------- .github/workflows/test.yaml | 72 ----------------------------------- 2 files changed, 123 deletions(-) delete mode 100644 .github/workflows/linter.yaml delete mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/linter.yaml b/.github/workflows/linter.yaml deleted file mode 100644 index 27f825f..0000000 --- a/.github/workflows/linter.yaml +++ /dev/null @@ -1,51 +0,0 @@ -name: linter -on: - push: - branches: - - "*" - -permissions: - contents: read - -jobs: - golangci: - name: golangci - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 - with: - go-version: '1.21' - cache: false - - name: golangci-lint - uses: golangci/golangci-lint-action@v3 - with: - # Require: The version of golangci-lint to use. - # When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version. - # When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit. - version: v1.54 - - # Optional: working directory, useful for monorepos - # working-directory: somedir - - # Optional: golangci-lint command line arguments. - # - # Note: By default, the `.golangci.yml` file should be at the root of the repository. - # The location of the configuration file can be changed by using `--config=` - # args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0 - - # Optional: show only new issues if it's a pull request. The default value is `false`. - # only-new-issues: true - - # Optional: if set to true, then all caching functionality will be completely disabled, - # takes precedence over all other caching options. - # skip-cache: true - - # Optional: if set to true, then the action won't cache or restore ~/go/pkg. - # skip-pkg-cache: true - - # Optional: if set to true, then the action won't cache or restore ~/.cache/go-build. - # skip-build-cache: true - - # Optional: The mode to install golangci-lint. It can be 'binary' or 'goinstall'. - # install-mode: "goinstall" diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml deleted file mode 100644 index 15bcd64..0000000 --- a/.github/workflows/test.yaml +++ /dev/null @@ -1,72 +0,0 @@ -name: unittest -on: - push: - branches: - - "*" - -permissions: - contents: read - -jobs: - go: - name: go - runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: write - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 - with: - go-version: '1.21' - - name: Install dependencies - run: | - go get . - - name: Build - run: make build - - name: Run Go tests - run: make test - - name: Code Coverage Report - uses: irongut/CodeCoverageSummary@v1.3.0 - with: - filename: coverage.xml - badge: true - fail_below_min: true - format: markdown - hide_branch_rate: false - hide_complexity: true - indicators: true - output: both - thresholds: '60 80' - - uses: jwalton/gh-find-current-pr@v1 - id: finder - - name: Add Coverage PR Comment - uses: marocchino/sticky-pull-request-comment@v2 - with: - number: ${{ steps.finder.outputs.pr }} - path: code-coverage-results.md - recreate: true - helm: - name: helm - runs-on: ubuntu-latest - env: - HELM_UNITTEST_VERSION: v0.3.5 - steps: - - uses: actions/checkout@v3 - - name: Install helm-unittest - run: helm plugin install --version $HELM_UNITTEST_VERSION https://github.com/helm-unittest/helm-unittest.git - - name: Run Helm test - run: make helm-test - kubeconform: - name: kubeconform - runs-on: ubuntu-latest - env: - KUBECONFORM_VERSION: 0.6.2 - steps: - - uses: actions/checkout@v3 - - name: Install kubeconform - run: | - curl -sSLo /tmp/kubeconform.tar.gz "https://github.com/yannh/kubeconform/releases/download/v${KUBECONFORM_VERSION}/kubeconform-linux-amd64.tar.gz" \ - && tar -C /usr/local/bin/ -xzvf /tmp/kubeconform.tar.gz - - name: Run Kubeconform test - run: make kubeconform