fix(): Use common tag-and-release workflow #38
Workflow file for this run
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: Tests | |
on: pull_request | |
jobs: | |
rspec: | |
name: rspec tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Install Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2.2 | |
bundler-cache: true | |
- name: Run rspec tests | |
run: | | |
bundle exec rspec | |
- name: Upload coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
include-hidden-files: 'true' | |
name: coverage-results | |
path: coverage | |
retention-days: 5 | |
coverage: | |
needs: rspec | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download coverage results | |
uses: actions/download-artifact@v3 | |
with: | |
name: coverage-results | |
path: coverage | |
- name: Simplecov Report | |
uses: aki77/simplecov-report-action@7fd5fa551dd583dd437a11c640b2a1cf23d6cdaa # v1.5.2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
failedThreshold: 100 | |
resultPath: coverage/.last_run.json |