WIP: Bedrock basic answer strategy #51
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: | |
- ".git**" | |
pull_request: | |
jobs: | |
security-analysis: | |
name: Security Analysis | |
uses: alphagov/govuk-infrastructure/.github/workflows/brakeman.yml@main | |
secrets: | |
BUNDLER_GITHUB_TOKEN: ${{ secrets.GOVUK_CI_GITHUB_API_TOKEN }} | |
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 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
show-progress: false | |
- name: Setup Node | |
uses: alphagov/govuk-infrastructure/.github/actions/setup-node@main | |
- name: "Run lint:JS task" | |
run: "yarn run lint:js" | |
lint-erb: | |
name: Lint ERB | |
uses: alphagov/govuk-infrastructure/.github/workflows/erblint.yml@main | |
secrets: | |
BUNDLER_GITHUB_TOKEN: ${{ secrets.GOVUK_CI_GITHUB_API_TOKEN }} | |
lint-ruby: | |
name: Lint Ruby | |
uses: alphagov/govuk-infrastructure/.github/workflows/rubocop.yml@main | |
secrets: | |
BUNDLER_GITHUB_TOKEN: ${{ secrets.GOVUK_CI_GITHUB_API_TOKEN }} | |
test-javascript: | |
name: Test JavaScript | |
uses: alphagov/govuk-infrastructure/.github/workflows/jasmine.yml@main | |
with: | |
useWithRails: true | |
secrets: | |
BUNDLER_GITHUB_TOKEN: ${{ secrets.GOVUK_CI_GITHUB_API_TOKEN }} | |
test-ruby: | |
name: Test Ruby | |
uses: ./.github/workflows/rspec.yml | |
secrets: inherit |