mirror of
https://github.com/pezkuwichain/pezkuwi-subquery.git
synced 2026-04-21 23:37:56 +00:00
4c3920ddae
- Add packageManager field to package.json for corepack - Add .yarnrc.yml with node-modules linker - Update all workflows to use corepack enable + yarn --immutable - Remove yarn cache from actions/setup-node (incompatible with Yarn 4)
39 lines
752 B
YAML
39 lines
752 B
YAML
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'
|
|
|
|
- name: Enable Corepack
|
|
run: corepack enable
|
|
|
|
- name: Install dependencies
|
|
run: yarn install --immutable
|
|
|
|
- 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
|