-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (37 loc) · 1.16 KB
/
pull_request_verification.yml
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
28
29
30
31
32
33
34
35
36
37
38
name: Verify Pull Request
on:
workflow_dispatch:
pull_request:
types: [ opened, reopened, ready_for_review, synchronize ]
branches: [ "development", "master" ]
jobs:
verify:
runs-on: macos-latest
if: ${{ !github.event.pull_request.draft }}
strategy:
fail-fast: true
steps:
- name: Checkout sdk automation scripts
uses: actions/checkout@v3
with:
repository: moengage/sdk-automation-scripts
path: sdk-automation-scripts
token: ${{ secrets.SDK_BOT_ACCESS_TOKEN }}
- name: Automation script setup
uses: ./sdk-automation-scripts/actions/npm-repository-setup
- name: Checkout code
uses: actions/checkout@v3
with:
path: source
fetch-depth: 0
fetch-tags: true
token: ${{ secrets.SDK_BOT_ACCESS_TOKEN }}
- name: Setup script
working-directory: source
run: |
chmod +x .github/scripts/utils.main.kts
chmod +x .github/scripts/verify-plugins.main.kts
- name: Verify
working-directory: source
run: |
kotlinc -script .github/scripts/verify-plugins.main.kts