Skip to content

Commit

Permalink
Reorganize CI
Browse files Browse the repository at this point in the history
  • Loading branch information
slawosz committed Oct 17, 2023
1 parent 7a8d800 commit 9f5520f
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/aks_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,9 @@ jobs:
docker-repository: ghcr.io/dfe-digital/teaching-school-hub-finder
github-token: ${{ secrets.GITHUB_TOKEN }}

# brakeman:
# name: Run Brakeman vulnerability scanner
# uses: ./.github/workflows/brakeman.yml
# with:
# ruby-version: "3.2.2"
brakeman:
name: Run brakeman
uses: ./.github/workflows/brakeman.yml

rspec:
name: Run the RSpec tests
uses: ./.github/workflows/specs.yml

permit-merge:
name: Permit merge
needs: [lint, rspec, cypress]
needs: [linting, rspec, brakeman]
runs-on: ubuntu-latest
steps:
- run: "echo 'Linting and tests passed, this branch is ready to be merged'"
Expand All @@ -68,7 +55,7 @@ jobs:
concurrency: deploy_review_${{ github.event.pull_request.number }}
if: github.actor != 'dependabot[bot]' && github.event_name == 'pull_request'
# needs: [docker, brakeman] TODO: redo brekeman
needs: [docker]
needs: [docker, linting]
runs-on: ubuntu-latest
environment:
name: review
Expand All @@ -93,7 +80,7 @@ jobs:
deploy_staging:
name: Deploy staging
needs: [docker, rspec, lint, brakeman]
needs: [docker, rspec, linting, brakeman]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
environment:
Expand Down

0 comments on commit 9f5520f

Please sign in to comment.