Skip to content

set up CI with linting #97

set up CI with linting

set up CI with linting #97

Workflow file for this run

name: PR
on:
pull_request:
jobs:
pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Before setup-node because that action runs `yarn cache dir`. See https://github.com/actions/setup-node/issues/480#issuecomment-1915448139
- run: corepack enable
shell: bash
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
- run: yarn install
- run: yarn tsc
- run: yarn prettier:check
- name: Codegen
run: yarn codegen
- name: Build
run: yarn build
# TODO: https://github.com/Agoric/agoric-subql/issues/8
# - name: Install subql-node-cosmos
# run: yarn global add @subql/node-cosmos
# - name: Run tests with Subquery Node
# run: subql-node-cosmos test -f ${{ github.workspace }}