mirror of
https://github.com/pezkuwichain/pezkuwi-subquery.git
synced 2026-04-22 06:37:57 +00:00
Add GitHub Actions workflows for CI and deploy
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '18'
|
||||
cache: 'yarn'
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install --frozen-lockfile
|
||||
|
||||
- name: Generate types
|
||||
run: yarn codegen
|
||||
|
||||
- name: Build
|
||||
run: yarn build
|
||||
|
||||
- name: Validate Pezkuwi Relay
|
||||
run: ./node_modules/.bin/subql validate -f pezkuwi.yaml
|
||||
|
||||
- name: Validate Pezkuwi Asset Hub
|
||||
run: ./node_modules/.bin/subql validate -f pezkuwi-assethub.yaml
|
||||
Reference in New Issue
Block a user