Merge pull request #608 from alphagov/sengi/ruby33 #166
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: | |
snyk-security: | |
name: SNYK security analysis | |
uses: alphagov/govuk-infrastructure/.github/workflows/snyk-security.yml@main | |
secrets: inherit | |
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 | |
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 |