Skip to content

Update script to output deployment counts by type and distinct networks deployed on #3758

Update script to output deployment counts by type and distinct networks deployed on

Update script to output deployment counts by type and distinct networks deployed on #3758

Workflow file for this run

on:
pull_request:
branches:
- master
jobs:
ValidateDirStruct:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Folderslint
run: npm run folderslint
LintStagedFiles:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Get changed files in the subgraphs folder
id: changed-files-specific
uses: Ana06/[email protected]
with:
filter: 'subgraphs/**/*.ts'
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Echo file changes
run: |
echo Changed files: "${{ steps.changed-files-specific.outputs.added_modified }}"
- name: Lint staged files
run: npm run lint:subgraphs ${{ steps.changed-files-specific.outputs.added_modified }}
ValidateFormatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Get changed files in the subgraphs folder
id: changed-files-specific
uses: Ana06/[email protected]
with:
filter: 'subgraphs/**/*.ts'
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Echo file changes
run: |
echo Changed files: "${{ steps.changed-files-specific.outputs.added_modified }}"
- name: Validate Formatting
run: npm run prettier-check ${{ steps.changed-files-specific.outputs.added_modified }}
Build:
runs-on: macos-latest
steps:
- id: files
uses: Ana06/[email protected]
continue-on-error: true
- uses: actions/checkout@v2
- uses: steegecs/Subgraph-Build-Checker@main
with:
CHANGED_FILES: "${{ steps.files.outputs.all }}"
ABSOLUTE_PATH: ${{ github.workspace }}
GRAPH_DEPLOYMENT_LOCATION: messari