-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
247c531
commit fbb3af4
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: pr-check | ||
|
||
on: | ||
pull_request_target: | ||
branches: | ||
- main | ||
- 'releases/*' | ||
|
||
jobs: | ||
deploy: | ||
environment: Automation test | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout from PR branch | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
#Using 12.x version as an example | ||
- name: Set Node.js 12.x for GitHub Action | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
|
||
- name: installing node_modules | ||
run: npm install | ||
|
||
- name: Build GitHub Action | ||
run: npm run build | ||
|
||
# include any workflow/action specific dependencies | ||
|
||
- uses: ./ #picks the current action PR code. | ||
with: | ||
#input parameters of the action. |