Sha256: c8ae0d2bb8b5fb1651677235d77810d9a5f1eb74435db64e1d65d05350c90fe8

Contents?: true

Size: 1.17 KB

Versions: 7

Compression:

Stored size: 1.17 KB

Contents

on: [push, pull_request]
jobs:
  # Run the test suite against multiple Ruby and Rails versions
  test_matrix:
    strategy:
      fail-fast: false
      matrix:
        # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
        ruby: ['3.0', 3.1, 3.2]
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - 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

7 entries across 7 versions & 1 rubygems

Version Path
govuk_app_config-8.0.0 .github/workflows/ci.yml
govuk_app_config-7.2.1 .github/workflows/ci.yml
govuk_app_config-7.2.0 .github/workflows/ci.yml
govuk_app_config-7.1.0 .github/workflows/ci.yml
govuk_app_config-7.0.0 .github/workflows/ci.yml
govuk_app_config-6.0.1 .github/workflows/ci.yml
govuk_app_config-6.0.0 .github/workflows/ci.yml