Bump faker from 3.5.1 to 3.8.0 #43
Workflow file for this run
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: "Run Tests and Upload Coverage" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Step 1: Check out the repository | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| # Step 2: Set up Ruby environment | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.2' | |
| bundler-cache: true | |
| # Step 3: Install dependencies | |
| - name: Install dependencies | |
| run: | | |
| gem install bundler | |
| bundle install | |
| # Step 4: Run tests with SimpleCov for coverage and generate RSpec results | |
| - name: Run tests and generate coverage | |
| run: | | |
| mkdir -p tmp | |
| # Start SimpleCov before running tests | |
| bundle exec rspec --require simplecov --format json --out tmp/rspec_results.json | |
| # Step 5: Upload RSpec test results (test analytics) | |
| - name: Upload RSpec test results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: rspec-results | |
| path: tmp/rspec_results.json | |
| # Step 6: Upload coverage to Codecov | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: coverage/.resultset.json | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| # Step 7: Upload coverage report artifact (optional for debugging) | |
| - name: Upload coverage report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report | |
| path: coverage/ |