Merge pull request #685 from alphagov/dependabot/bundler/rails-html-s… #300
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |