Skip to content

Merge pull request #685 from alphagov/dependabot/bundler/rails-html-s… #300

Merge pull request #685 from alphagov/dependabot/bundler/rails-html-s…

Merge pull request #685 from alphagov/dependabot/bundler/rails-html-s… #300

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
paths-ignore: [".git**"]
workflow_dispatch:
jobs:
codeql-sast:
name: CodeQL SAST scan
uses: alphagov/govuk-infrastructure/.github/workflows/codeql-analysis.yml@main
permissions:
security-events: write
dependency-review:
name: Dependency Review scan
uses: alphagov/govuk-infrastructure/.github/workflows/dependency-review.yml@main
security-analysis:
name: Security Analysis
uses: alphagov/govuk-infrastructure/.github/workflows/brakeman.yml@main
secrets: inherit
permissions:
contents: read
security-events: write
actions: read
lint-ruby:
name: Lint Ruby
uses: alphagov/govuk-infrastructure/.github/workflows/rubocop.yml@main
test-ruby:
name: Test Ruby
runs-on: ubuntu-latest
steps:
- uses: alphagov/govuk-infrastructure/.github/actions/setup-mongodb@main
with:
version: 2.6
- uses: actions/checkout@v4
with:
show-progress: false
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- run: bundle exec rails db:setup
env:
RAILS_ENV: test
- run: bundle exec rake spec
env:
RAILS_ENV: test