44 lines
1006 B
YAML
44 lines
1006 B
YAML
name: Pull Request Validation
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
branches: [main]
|
|
|
|
jobs:
|
|
validation:
|
|
name: Pull Request Suggest Chain Validation
|
|
runs-on: ubuntu-24.04
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup nodejs
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: "18"
|
|
|
|
- run: npm install --global yarn
|
|
- run: yarn install --frozen-lockfile
|
|
|
|
- name: Get changed files
|
|
id: changed-files
|
|
uses: tj-actions/changed-files@v34
|
|
with:
|
|
files: |
|
|
cosmos/**
|
|
evm/**
|
|
svm/**
|
|
|
|
- name: Validate changed files
|
|
run: |
|
|
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
|
|
if [[ $file == *".json"* ]]; then
|
|
yarn ts-node src/index.ts $file
|
|
fi
|
|
done
|
|
env:
|
|
PRICE_URL: ${{ secrets.PRICE_URL }}
|