-
Notifications
You must be signed in to change notification settings - Fork 121
Feat/add specs #6809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Feat/add specs #6809
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
afa12eb
chore(tests): add validation/request-check
fabianrbz cd19ad8
chore(tests): add request-check/snippet specs
fabianrbz 52ef36c
fix(how-to): variable extraction and add tests for the template
fabianrbz 514e981
chore(specs): add specs for claude-code
fabianrbz 81df7f0
chore(tests): add tests for codex
fabianrbz fe4893c
chore(tests): increase spec coverage
fabianrbz 03d6319
fix(unauthorized-check): add specs and improve messaging based on the
fabianrbz fdd9fde
fix(series): add missing metadata and fix the env variables
fabianrbz 91a6c79
chore(specs): add more coverage
fabianrbz f074552
fix(qwen): drop base_url from the snippet and add coverage
fabianrbz 505c726
chore(specs): add more coverage
fabianrbz c5f132e
feat(rspec): add gh action
fabianrbz c73a1f9
fix(specs): attempt at fixing rspec gh action
fabianrbz 15fa136
fix(specs): build the site instance once before the suite starts
fabianrbz e69af87
edits
Guaris File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| name: RSpec | ||
| on: | ||
| pull_request: | ||
| types: [synchronize, opened, reopened] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| cancel-in-progress: true | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
|
|
||
| jobs: | ||
| rspec: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 15 | ||
| steps: | ||
| - name: Harden Runner | ||
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | ||
| with: | ||
| egress-policy: audit | ||
|
|
||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | ||
|
|
||
| - name: Set up Ruby | ||
| uses: ruby/setup-ruby@84684c07c1965536eb4802c8daf1a77968df0cb1 # v1 | ||
| with: | ||
| ruby-version: .ruby-version | ||
|
|
||
| - name: Ruby gem cache | ||
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 | ||
| with: | ||
| path: ${{ github.workspace }}/vendor/bundle | ||
| key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-gems- | ||
|
|
||
| - name: Bundle Setup | ||
| run: bundle config path ${{ github.workspace }}/vendor/bundle | ||
|
|
||
| - name: Bundle Install | ||
| run: bundle install --jobs 4 --retry 3 | ||
|
|
||
| - name: Run RSpec | ||
| run: bundle exec rspec | ||
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
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
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
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
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
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
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
7 changes: 7 additions & 0 deletions
7
app/_includes/how-tos/validations/unauthorized-check/message.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| {%- if config.status_code and config.message -%} | ||
| This request returns a `{{ config.status_code }}` error with the message `{{ config.message }}`. | ||
| {%- elsif config.status_code -%} | ||
| This request returns a `{{ config.status_code }}` error. | ||
| {%- elsif config.message -%} | ||
| This request returns an error with the message `{{ config.message }}`. | ||
| {%- endif -%} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.