From 5a0bd5c512f9f6d36693a9003696c5a875323da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alper=20K=C4=B1l=C4=B1=C3=A7kaya?= <48261006+alperkilickaya@users.noreply.github.com> Date: Sat, 11 Jan 2025 20:15:10 +0100 Subject: [PATCH] actions order changed --- .github/workflows/test.yml | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 59b5eea..3f8bdbb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,27 +4,13 @@ on: pull_request: branches: - main + workflow_dispatch: jobs: - security-scan: - name: Security Scan - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Gitleaks - uses: gitleaks/gitleaks-action@v2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - test: + name: Unit Test runs-on: ubuntu-latest - needs: security-scan - steps: - name: Checkout code uses: actions/checkout@v3 @@ -46,3 +32,18 @@ jobs: with: name: coverage-report path: coverage/ + + security-scan: + name: Security Scan + runs-on: ubuntu-latest + needs: test + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Gitleaks + uses: gitleaks/gitleaks-action@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}