-
Notifications
You must be signed in to change notification settings - Fork 235
[tsp-client] Add gh action for tests #8847
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 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
76a728b
add gh action
cperaltah d4d5c79
review feedback
cperaltah db0b301
fix tests for latest update
cperaltah 2aabd20
add working dir
cperaltah ab448ee
fix dir paths
cperaltah e305a9c
sparse checkout
cperaltah e9bd2e6
clean up code coverage
cperaltah aa7236d
testing gh action - will revert
cperaltah 4a11847
undo test commit
cperaltah 1d487e9
Merge branch 'main' of https://github.com/Azure/azure-sdk-tools into …
cperaltah 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,55 @@ | ||
| name: tsp-client - Test | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| paths: | ||
| - tools/tsp-client/** | ||
|
|
||
| jobs: | ||
| tsp-client: | ||
| strategy: | ||
| matrix: | ||
| os: [ubuntu-latest, windows-latest] | ||
| node-version: [18.19, 20] | ||
|
catalinaperalta marked this conversation as resolved.
Outdated
|
||
| exclude: | ||
| - os: ubuntu-latest | ||
| node-version: 20 | ||
| - os: windows-latest | ||
| node-version: 18.19 | ||
|
|
||
| runs-on: ${{ matrix.os }} | ||
|
|
||
| steps: | ||
| - if: runner.os == 'Windows' | ||
| run: git config --global core.longpaths true | ||
| shell: pwsh | ||
|
|
||
| - name: Use Node ${{ matrix.node-version }}.x | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: ${{ matrix.node-version }}.x | ||
|
|
||
| - run: npm ci | ||
| shell: pwsh | ||
|
|
||
| - run: npm ls -a | ||
| shell: pwsh | ||
| continue-on-error: true | ||
|
|
||
| - run: npm run build | ||
| shell: pwsh | ||
| working-directory: ./tools/tsp-client | ||
|
|
||
| - run: npm run test | ||
| shell: pwsh | ||
| working-directory: ./tools/tsp-client | ||
|
|
||
| - name: Archive code coverage results | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: code-coverage-report-${{ matrix.os }}-${{ matrix.node-version }} | ||
| path: ./tools/tsp-client/coverage | ||
| if-no-files-found: ignore | ||
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.