Repository navigation
feat: v3 alignments #40
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: Checks | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: checks-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| base-sdk: | |
| name: Base SDK on Ruby ${{ matrix.ruby-version }} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby-version: ["3.0", "3.4"] | |
| env: | |
| BUNDLE_GEMFILE: gemfiles/base.gemfile | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v7 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby-version }} | |
| bundler-cache: true | |
| - name: Test base SDK without OpenFeature dependencies | |
| run: bundle exec rspec spec/ --exclude-pattern spec/openfeature_provider_spec.rb | |
| full: | |
| name: Full SDK and provider | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v7 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: "3.4" | |
| bundler-cache: true | |
| - name: Test both packages | |
| run: make test | |
| - name: Build and verify both gem artifacts | |
| run: make build | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version-file: .nvmrc | |
| - name: Set up Featurevisor example-1 project | |
| run: | | |
| mkdir example-1 | |
| cd example-1 | |
| npx --yes @featurevisor/cli@3 init --example=1 | |
| npm install | |
| npx featurevisor build | |
| npx featurevisor test --onlyFailures | |
| - name: Run Featurevisor project tests against Ruby SDK | |
| run: bundle exec ruby bin/featurevisor test --projectDirectoryPath=example-1 --onlyFailures |