-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e04d482
commit 15b2083
Showing
8 changed files
with
1 addition
and
381 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
|
@@ -164,88 +164,6 @@ jobs: | |
" | ||
`; | ||
|
||
exports[`#createGHA > command inputs > 'openapi' '' > should run GHA creation workflow and generate valid workflow file 1`] = ` | ||
" | ||
Your GitHub Actions workflow file has been created! ✨ | ||
Almost done! Just a couple more steps: | ||
1. Push your newly created file (.github/workflows/rdme-openapi.yml) to GitHub 🚀 | ||
2. Create a GitHub secret called README_API_KEY and populate the value with your ReadMe API key (••••••••••••I_KEY) 🔑 | ||
🔐 Check out GitHub's docs for more info on creating encrypted secrets (https://docs.github.com/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository) | ||
🦉 If you have any more questions, feel free to drop us a line! [email protected] | ||
" | ||
`; | ||
|
||
exports[`#createGHA > command inputs > 'openapi' '' > should run GHA creation workflow and generate valid workflow file 2`] = ` | ||
"# This GitHub Actions workflow was auto-generated by the \`rdme\` cli on 2022-01-01T00:00:00.000Z | ||
# You can view our full documentation here: https://docs.readme.com/docs/rdme | ||
name: ReadMe GitHub Action 🦉 | ||
on: | ||
push: | ||
branches: | ||
# This workflow will run every time you push code to the following branch: \`some-branch\` | ||
# Check out GitHub's docs for more info on configuring this: | ||
# https://docs.github.com/actions/using-workflows/events-that-trigger-workflows | ||
- some-branch | ||
jobs: | ||
rdme-openapi: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repo 📚 | ||
uses: actions/checkout@v4 | ||
- name: Run \`openapi\` command 🚀 | ||
uses: readmeio/rdme@v7 | ||
with: | ||
rdme: openapi petstore.json --key=\${{ secrets.README_API_KEY }} --id=spec_id | ||
" | ||
`; | ||
|
||
exports[`#createGHA > command inputs > 'openapi' '' > should run GHA creation workflow with \`--github\` flag and messy file name and generate valid workflow file 1`] = ` | ||
" | ||
Your GitHub Actions workflow file has been created! ✨ | ||
Almost done! Just a couple more steps: | ||
1. Push your newly created file (.github/workflows/rdme-openapi-with-github-flag.yml) to GitHub 🚀 | ||
2. Create a GitHub secret called README_API_KEY and populate the value with your ReadMe API key (••••••••••••I_KEY) 🔑 | ||
🔐 Check out GitHub's docs for more info on creating encrypted secrets (https://docs.github.com/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository) | ||
🦉 If you have any more questions, feel free to drop us a line! [email protected] | ||
" | ||
`; | ||
|
||
exports[`#createGHA > command inputs > 'openapi' '' > should run GHA creation workflow with \`--github\` flag and messy file name and generate valid workflow file 2`] = ` | ||
"# This GitHub Actions workflow was auto-generated by the \`rdme\` cli on 2022-01-01T00:00:00.000Z | ||
# You can view our full documentation here: https://docs.readme.com/docs/rdme | ||
name: ReadMe GitHub Action 🦉 | ||
on: | ||
push: | ||
branches: | ||
# This workflow will run every time you push code to the following branch: \`another-branch\` | ||
# Check out GitHub's docs for more info on configuring this: | ||
# https://docs.github.com/actions/using-workflows/events-that-trigger-workflows | ||
- another-branch | ||
jobs: | ||
rdme-openapi: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repo 📚 | ||
uses: actions/checkout@v4 | ||
- name: Run \`openapi\` command 🚀 | ||
uses: readmeio/rdme@v7 | ||
with: | ||
rdme: openapi petstore.json --key=\${{ secrets.README_API_KEY }} --id=spec_id | ||
" | ||
`; | ||
|
||
exports[`#createGHA > command inputs > 'openapi:validate' '' > should run GHA creation workflow and generate valid workflow file 1`] = ` | ||
" | ||
Your GitHub Actions workflow file has been created! ✨ | ||
|
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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 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 was deleted.
Oops, something went wrong.
Oops, something went wrong.