Skip to content
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

Sync .github/workflows directory with azure-sdk-tools for PR 8436 #36150

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/js-sdk-release-tool-pull-request-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Javascript SDK Release Tool Pull Request Check

on:
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
name: Build and Test TypeScript

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Check file existence
id: check_files
uses: andstor/file-existence-action@v1
with:
files: "tools/js-sdk-release-tools/package.json"

- name: Install dependencies
if: steps.check_files.outputs.files_exists == 'true'
run: npm install
working-directory: tools/js-sdk-release-tools/

- name: Build TypeScript
if: steps.check_files.outputs.files_exists == 'true'
run: npm run build
working-directory: tools/js-sdk-release-tools/

- name: Run Unit Tests
if: steps.check_files.outputs.files_exists == 'true'
run: npm run test
working-directory: tools/js-sdk-release-tools/

- name: Run CI E2E Tests
if: steps.check_files.outputs.files_exists == 'true'
run: npm run test:ci
working-directory: tools/js-sdk-release-tools/
Loading