Enhance pre/post
cleanup by bypassing GitHub-hosted runners
#299
This file contains 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
name: pr-check | |
on: | |
pull_request: | |
branches: | |
- master | |
- 'releases/*' | |
jobs: | |
az-login-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 |