-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7febf9f
commit 2d2cc59
Showing
1 changed file
with
55 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,65 @@ | ||
name: CI | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_dispatch: {} | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- "Jenkinsfile" | ||
- ".git**" | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
name: Test Rails | ||
uses: alphagov/govuk-infrastructure/.github/workflows/test-rails.yaml@main | ||
security-analysis: | ||
name: Security Analysis | ||
uses: alphagov/govuk-infrastructure/.github/workflows/brakeman.yaml@main | ||
|
||
lint-scss: | ||
name: Lint SCSS | ||
uses: alphagov/govuk-infrastructure/.github/workflows/stylelint.yaml@main | ||
with: | ||
files: "app/assets/stylesheets/" | ||
|
||
lint-javascript: | ||
name: Lint JavaScript | ||
uses: alphagov/govuk-infrastructure/.github/workflows/standardx.yaml@main | ||
with: | ||
requiresJavaScript: true | ||
files: "'app/assets/javascripts/**/*.js' 'spec/javascripts/**/*.js'" | ||
|
||
lint-ruby: | ||
name: Lint Ruby | ||
uses: alphagov/govuk-infrastructure/.github/workflows/rubocop.yaml@main | ||
|
||
test-javascript: | ||
name: Test JavaScript | ||
uses: alphagov/govuk-infrastructure/.github/workflows/jasmine.yaml@main | ||
with: | ||
useWithRails: true | ||
|
||
test-ruby: | ||
name: Test Ruby | ||
runs-on: ubuntu-latest | ||
steps: | ||
- 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: Run Minitest | ||
env: | ||
RAILS_ENV: test | ||
run: bundle exec rake test | ||
|