Skip to content

Change the trigger for pr check workflow #278

Change the trigger for pr check workflow

Change the trigger for pr check workflow #278

name: pr-check
on:
pull_request:
branches:
- master
- 'releases/*'
jobs:
az-login-test:
environment: Automation test
runs-on: windows-latest
steps:
- name: Checkout from PR branch
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
# Using 20.x version as an example
- name: Set Node.js 20.x for GitHub Action
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: installing node_modules
run: npm install
- name: Build GitHub Action
run: npm run build
- name: Run mock test
run: npm run test