From 397683d34a952e8c1e220e43a993048a8fa98bd9 Mon Sep 17 00:00:00 2001 From: MadsRC Date: Sun, 12 May 2024 01:43:20 +0200 Subject: [PATCH] No deepsource (#64) * Revert "Deepsource (#63)" This reverts commit a9cb36bd98ebb3adab3e8bb7938ce461b8ee2041. * Revert "chore: trying out deepsource (#61)" This reverts commit 1ac594285b608405d3ecd89d399fb484734e20db. --- .deepsource.toml | 34 -------------------------- .github/workflows/deepsource.yaml | 40 ------------------------------- 2 files changed, 74 deletions(-) delete mode 100644 .deepsource.toml delete mode 100644 .github/workflows/deepsource.yaml diff --git a/.deepsource.toml b/.deepsource.toml deleted file mode 100644 index 0b133e2..0000000 --- a/.deepsource.toml +++ /dev/null @@ -1,34 +0,0 @@ -version = 1 - -test_patterns = [ - "tests/**/*", - "**/*_test.go" -] - -exclude_patterns = ["**/*.pb.go"] - -[[analyzers]] -name = "test-coverage" -enabled = true - -[[analyzers]] -name = "shell" -enabled = true - -[[analyzers]] -name = "secrets" -enabled = true - -[[analyzers]] -name = "docker" -enabled = true - - [analyzers.meta] - dockerfile_paths = ["Dockerfile"] - -[[analyzers]] -name = "go" -enabled = true - - [analyzers.meta] - import_root = "github.com/MadsRC/sophrosyne" diff --git a/.github/workflows/deepsource.yaml b/.github/workflows/deepsource.yaml deleted file mode 100644 index 218fedb..0000000 --- a/.github/workflows/deepsource.yaml +++ /dev/null @@ -1,40 +0,0 @@ -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -on: - # Trigger analysis when pushing in master or pull requests, and when creating - # a pull request. - push: - branches: - - main - pull_request: - types: [opened, synchronize, reopened] -name: DeepSource analysis -jobs: - sonarcloud: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 - with: - # Disabling shallow clone is recommended for improving relevancy of reporting - fetch-depth: 0 - # See https://docs.deepsource.com/docs/analyzers-test-coverage#with-github-actions - ref: ${{ github.event.pull_request.head.sha }} - - uses: jdx/mise-action@0c39a522dfbced3ed83924152c45804a71ce216f # v2.0.4 - with: - experimental: true - - run: mise run dev:lint --no-fail - - run: mise run test:unit - - name: Report results to DeepSource - run: | - # Tests have finished and a test coverage report is available - - # Install deepsource CLI - curl https://deepsource.io/cli | sh - - # From the root directory, run the report coverage command - ./bin/deepsource report --analyzer test-coverage --key go --value-file build/unit_coverage.out - - env: - DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}