Merge pull request #1117 from alphagov/dependabot/bundler/govuk_publi… #3691
This file contains hidden or 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: | |
| 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: | |
| 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| 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 |