From daad904fd1d80e904c9cbefb0c49a41d4bf3b604 Mon Sep 17 00:00:00 2001 From: Ethen1264 Date: Mon, 16 Dec 2024 17:28:10 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9BFix:=20deepsource-analysis.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deepsource-analysis.yml | 26 +++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deepsource-analysis.yml b/.github/workflows/deepsource-analysis.yml index 0bedbae..9a26341 100644 --- a/.github/workflows/deepsource-analysis.yml +++ b/.github/workflows/deepsource-analysis.yml @@ -2,19 +2,33 @@ name: DeepSource Analysis on: pull_request: - types: [opened, synchronize, reopened] + branches: + - main + push: + branches: + - main jobs: - analysis: + deepsource: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '16' + + - name: Install dependencies + run: | + npm install - name: Install DeepSource CLI - run: curl https://deepsource.io/cli | sh + run: | + curl -sSL https://deepsource.io/cli/install | bash - - name: Run DeepSource analysis - run: ./bin/deepsource analyze + - name: Run DeepSource Analysis env: DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }} + run: deepsource analyze