Skip to content

Commit

Permalink
Initial automatic PR check workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wlhutchison authored Apr 5, 2022
1 parent 247c531 commit fbb3af4
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/pr-check.yml
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.

0 comments on commit fbb3af4

Please sign in to comment.