docs: tweak some language, add an explicit github link to the upper r… #153
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: Tests | |
| on: | |
| push: | |
| pull_request: | |
| concurrency: | |
| group: ci-tests-${{ github.ref }}-1 | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: Run Tests | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ ubuntu-latest ] | |
| ruby: ['3.2', '3.3' ] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| - uses: actions/cache@v3 | |
| with: | |
| path: vendor/bundle | |
| key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gems- | |
| - name: Bundle Install | |
| run: | | |
| gem install bundler -v 2.4.22 | |
| bundle install --jobs 4 --retry 3 | |
| - name: Run RSpec | |
| run: bundle exec rspec -f j -o tmp/rspec_results.json -f p | |
| - name: RSpec Report | |
| uses: SonicGarden/rspec-report-action@v2 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| json-path: tmp/rspec_results.json | |
| if: always() | |
| publish: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| if: github.ref == 'refs/heads/main' | |
| needs: [test] | |
| steps: | |
| - name: Dispatch Release | |
| uses: benc-uk/workflow-dispatch@v1 | |
| with: | |
| workflow: Generate New Release | |
| token: ${{ secrets.GITHUB_TOKEN }} |