-
Notifications
You must be signed in to change notification settings - Fork 2
[#104] Add tests for add-ons #112
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
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
036ac77
[#104] chore: Add tests for add-ons
tyrro 93db04d
[#104] Add `test-app` folder to .gitignore
malparty 13b1e40
[#104] Fix last step for the test-cli.yml action
malparty d0d2b8d
[#104] Fix test-cli action name
malparty 6508677
[#104] Add working directory for cli-test npm command
malparty b516a6d
[#104] Fix test-cli action to run tests and typescript intellisense i…
malparty 6e8df4c
[#104] Reset quote changes in test.yml action
malparty ea099b3
[#104] Add dest arg to test template outside from the package tree
malparty 6d101e9
[#104] Adjust .gitignore test-app to the right folder
malparty b323e5f
[#104] Add test scenarios data
malparty 30e5944
[#104] Refactor tests to isolate each concern
malparty 06289d8
[#104] Add test documentation and simplify testData usage
malparty c68c139
[#104] Fix typos in the README
malparty 96c1ea8
[#104] Rename the test workflows to fit project names
malparty 20c6bca
[#104] Use npm workspace flag instead of GitHub Action working directory
malparty 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,31 @@ | ||
| name: Test CLI Tool | ||
|
|
||
| on: push | ||
|
|
||
| jobs: | ||
| test-cli-tool: | ||
| name: Run CLI Tool tests with Node ${{ matrix.node }} | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| node: [16] | ||
| steps: | ||
| - name: Cancel Previous Runs | ||
| uses: styfle/cancel-workflow-action@0.9.1 | ||
| with: | ||
| access_token: ${{ github.token }} | ||
|
|
||
| - name: Checkout | ||
| uses: actions/checkout@v2 | ||
|
|
||
| - name: Setup node and restore cached dependencies | ||
| uses: actions/setup-node@v2 | ||
| with: | ||
| node-version: ${{ matrix.node }} | ||
| cache: "npm" | ||
|
|
||
| - name: NPM install | ||
| run: npm ci && lerna bootstrap --ci | ||
|
|
||
| - name: Run tests | ||
| run: npm run test --workspace=packages/cli-tool |
4 changes: 2 additions & 2 deletions
4
.github/workflows/test.yml → .github/workflows/test-cra-template.yml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,5 +8,8 @@ | |
|
|
||
| npm-debug.log* | ||
|
|
||
| # tests | ||
| /test-app | ||
|
|
||
| # editors | ||
| .vscode | ||
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.