Merge pull request #23 from reidmorrison/add-secrets-manager-provider #63
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: build | |
| on: | |
| - push | |
| - pull_request | |
| jobs: | |
| lint: | |
| name: Rubocop | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: "3.4" | |
| # runs 'bundle install' and caches installed gems automatically | |
| bundler-cache: true | |
| # Run once rather than across the matrix: TargetRubyVersion in .rubocop.yml decides which cops | |
| # apply, so the result does not depend on the Ruby that rubocop itself runs on. | |
| - name: Run Rubocop | |
| run: bundle exec rubocop | |
| test: | |
| name: "Test: Ruby ${{ matrix.ruby }}" | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby: [3.2, 3.3, 3.4, "4.0"] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| # runs 'bundle install' and caches installed gems automatically | |
| bundler-cache: true | |
| - name: Ruby Version | |
| run: ruby --version | |
| # `rake test` rather than the default task, so rubocop is not repeated on every matrix entry. | |
| - name: Run Tests | |
| run: bundle exec rake test |