feat: Integrate user context management for sidekiq jobs #1624
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: Ruby Unit Tests | |
| on: | |
| push: | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| goo-slice: [ '100' ] | |
| ruby-version: [ '3.2.0' ] | |
| triplestore: [ 'fs', 'ag', 'vo', 'gb' ] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install Dependencies | |
| run: sudo apt-get update && sudo apt-get -y install raptor2-utils | |
| - name: Set up JDK 11 | |
| uses: actions/setup-java@v2 | |
| with: | |
| java-version: '11' | |
| distribution: 'adopt' | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby-version }} | |
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
| cache-version: v1-${{ hashFiles('Gemfile.lock') }} # invalidate the cache based on the Gemfile.lock hash | |
| - name: Run unit tests | |
| run: | | |
| cp .env.sample .env | |
| ci_env=`bash <(curl -s https://codecov.io/env)` | |
| GOO_SLICES=${{ matrix.goo-slice }} bundle exec rake test:docker:${{ matrix.triplestore }} | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v3 | |
| with: | |
| flags: unittests | |
| verbose: true | |
| fail_ci_if_error: false # optional (default = false) |