forked from Azure/Azure-Sentinel
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (26 loc) · 1.05 KB
/
solution-validations.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Solution Validations
run-name: Solution Validations running on ${{ github.ref_name }}
on:
pull_request:
branches:
- master
# Allows to run workflow manually from the Actions tab
workflow_dispatch:
jobs:
SolutionValidations:
runs-on: ubuntu-latest
env:
REPO_OWNER: ${{ github.event.pull_request.base.repo.owner.login }}
REPO_NAME: ${{ github.event.pull_request.base.repo.name }}
PRNUM: ${{ github.event.pull_request.number }}
GITHUBAPPID: ${{ secrets.APPLICATION_ID }}
GITHUBAPPINSTALLATIONID: ${{ secrets.APPLICATION_INSTALLATION_ID }}
GITHUBAPPPRIVATEKEY: ${{ secrets.APPLICATION_PRIVATE_KEY }}
SYSTEM_PULLREQUEST_ISFORK: ${{ github.event.pull_request.head.repo.fork }}
steps:
- uses: actions/checkout@v4
- run: npm install -g [email protected];which npm;npm -v
- name: npm install
run: npm install
- name: Solution Validations
run: npm run tsc && node .script/SolutionValidations/solutionValidator.js