feat: 🎸 Upgrade subql-node and subql-query to latest versions #667
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [master, alpha] | |
pull_request: | |
types: [assigned, opened, synchronize, reopened, edited] | |
jobs: | |
lint_test: | |
name: Linting and Testing | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '18.x' | |
cache: 'yarn' | |
- name: install dependencies | |
run: yarn --frozen-lockfile | |
- name: make project.yaml | |
run: envsubst < project.template.yaml > project.yaml | |
env: | |
START_BLOCK: 1 | |
CALL_HANDLER: 'handleCall' | |
EVENT_HANDLER: 'handleEvent' | |
NETWORK_ENDPOINT: 'ws://host.docker.internal:9944' | |
NETWORK_CHAIN_ID: '0xda7f2072787bfd0b09f7e12fca619afb6041b3d620f39f3a508814869100bf01' | |
- name: gen types | |
run: yarn codegen | |
- name: validate subquery project | |
run: yarn validate | |
- name: build src | |
run: yarn build | |
- name: lint | |
run: yarn lint | |
- name: test | |
run: yarn test | |
release: | |
name: Building and releasing project | |
runs-on: ubuntu-latest | |
needs: [lint_test] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
cache: 'yarn' | |
- name: install dependencies | |
run: yarn --frozen-lockfile | |
- name: release | |
env: | |
GH_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
run: yarn semantic-release |