Sha256: 5d89577e50bc8d43193dab9d154058bea1001d1a8b0bdbeb128b039deb28d4e5

Contents?: true

Size: 1.61 KB

Versions: 21

Compression:

Stored size: 1.61 KB

Contents

name: CI

on:
  push:
    branches:
      - main
  pull_request:
  workflow_dispatch:
    inputs:
      ref:
        description: 'The branch, tag or SHA to checkout'
        default: main
        type: string

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
  
  # Run the test suite against multiple Ruby and Rails versions
  test_matrix:
    strategy:
      fail-fast: false
      matrix:
        ruby: [3.1, 3.2, 3.3]
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
      with:
        ref: ${{ inputs.ref || github.ref }}
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true
    - run: bundle exec rake

  # Branch protection rules cannot directly depend on status checks from matrix jobs.
  # So instead we define `test` as a dummy job which only runs after the preceding `test_matrix` checks have passed.
  # Solution inspired by: https://github.community/t/status-check-for-a-matrix-jobs/127354/3
  test:
    needs: test_matrix
    runs-on: ubuntu-latest
    steps:
      - run: echo "All matrix tests have passed 🚀"

  publish:
    needs: test
    if: ${{ github.ref == 'refs/heads/main' }}
    permissions:
      contents: write
    uses: alphagov/govuk-infrastructure/.github/workflows/publish-rubygem.yml@main
    secrets:
      GEM_HOST_API_KEY: ${{ secrets.ALPHAGOV_RUBYGEMS_API_KEY }}

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
govuk_app_config-9.16.1 .github/workflows/ci.yml
govuk_app_config-9.16.0 .github/workflows/ci.yml
govuk_app_config-9.15.8 .github/workflows/ci.yml
govuk_app_config-9.15.7 .github/workflows/ci.yml
govuk_app_config-9.15.6 .github/workflows/ci.yml
govuk_app_config-9.15.5 .github/workflows/ci.yml
govuk_app_config-9.15.4 .github/workflows/ci.yml
govuk_app_config-9.15.3 .github/workflows/ci.yml
govuk_app_config-9.15.2 .github/workflows/ci.yml
govuk_app_config-9.15.1 .github/workflows/ci.yml
govuk_app_config-9.15.0 .github/workflows/ci.yml
govuk_app_config-9.14.6 .github/workflows/ci.yml
govuk_app_config-9.14.5 .github/workflows/ci.yml
govuk_app_config-9.14.4 .github/workflows/ci.yml
govuk_app_config-9.14.3 .github/workflows/ci.yml
govuk_app_config-9.14.2 .github/workflows/ci.yml
govuk_app_config-9.14.1 .github/workflows/ci.yml
govuk_app_config-9.14.0 .github/workflows/ci.yml
govuk_app_config-9.13.1 .github/workflows/ci.yml
govuk_app_config-9.13.0 .github/workflows/ci.yml