Merge pull request #473 from sgbett/feat/466-beef-ancestry-persistence #460
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: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby-version: ['2.7', '3.0', '3.1', '3.2', '3.3', '3.4'] | |
| services: | |
| postgres: | |
| image: postgres:16 | |
| env: | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: postgres | |
| POSTGRES_DB: bsv_wallet_test | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd "pg_isready -U postgres" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Ruby ${{ matrix.ruby-version }} | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby-version }} | |
| bundler-cache: true | |
| - name: Run specs | |
| run: bundle exec rake | |
| env: | |
| COVERAGE: ${{ matrix.ruby-version == '3.4' && 'true' || '' }} | |
| DATABASE_URL: postgres://postgres:postgres@localhost:5432/bsv_wallet_test | |
| - name: Upload coverage | |
| if: matrix.ruby-version == '3.4' | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| files: coverage/coverage.xml | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: false | |
| - name: Run RuboCop | |
| run: bundle exec rubocop |