Skip to content

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

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

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

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/