MOEN-31729: Modifying the script to use common scripts #50
Workflow file for this run
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
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 |