-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (38 loc) · 1.14 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
39
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: false
matrix:
xcode: ["15.3"]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20.5.1
registry-url: 'https://registry.npmjs.org'
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: Set up gradle cache
uses: gradle/gradle-build-action@v2
with:
cache-read-only: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/development'}}
- name: Setup script
run: |
chmod +x .github/scripts/common-utils.main.kts
chmod +x .github/scripts/verify-plugins.main.kts
- name: Verify
run: |
kotlinc -script .github/scripts/verify-plugins.main.kts