Finish upgrade to frontend 5 #1146
Workflow file for this run
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: | |
workflow_dispatch: {} | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "Jenkinsfile" | |
- ".git**" | |
pull_request: | |
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-scss: | |
name: Lint SCSS | |
uses: alphagov/govuk-infrastructure/.github/workflows/stylelint.yml@main | |
with: | |
files: "app/assets/stylesheets/" | |
lint-javascript: | |
name: Lint JavaScript | |
uses: alphagov/govuk-infrastructure/.github/workflows/standardx.yml@main | |
with: | |
files: "'app/assets/javascripts/**/*.js' 'spec/javascripts/**/*.js'" | |
lint-ruby: | |
name: Lint Ruby | |
uses: alphagov/govuk-infrastructure/.github/workflows/rubocop.yml@main | |
test-javascript: | |
name: Test JavaScript | |
uses: alphagov/govuk-infrastructure/.github/workflows/jasmine.yml@main | |
with: | |
useWithRails: true | |
test-ruby: | |
name: Test Ruby | |
uses: ./.github/workflows/rspec.yml | |
integration-tests: | |
name: Integration tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup MongoDB | |
uses: alphagov/govuk-infrastructure/.github/actions/setup-mongodb@main | |
with: | |
version: 3.6 | |
- name: Setup Redis | |
uses: alphagov/govuk-infrastructure/.github/actions/setup-redis@main | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Setup Node | |
uses: alphagov/govuk-infrastructure/.github/actions/setup-node@main | |
- name: Precompile assets | |
uses: alphagov/govuk-infrastructure/.github/actions/precompile-rails-assets@main | |
- name: Initialize database | |
env: | |
RAILS_ENV: test | |
run: bundle exec rails db:setup | |
- name: Run cucumber | |
env: | |
RAILS_ENV: test | |
run: bundle exec rails cucumber |