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 }}