Merge pull request #910 from Homebrew/sync-shared-config #1634
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: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| tests: | |
| strategy: | |
| matrix: | |
| platform: ["ubuntu-latest", "macos-latest"] | |
| ruby: ["2.7", "3.0", "3.1", "3.2", "3.3"] | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - name: Set up Git repository | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: true | |
| - name: Run tests | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| run: bundle exec rake | |
| - name: Run RuboCop | |
| run: bundle exec rubocop -D lib/ | |
| - name: Upload coverage results | |
| uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1 | |
| with: | |
| files: coverage/coverage.xml | |
| disable_search: true | |
| token: ${{ secrets.CODECOV_TOKEN }} |