-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,25 +26,31 @@ jobs: | |
- name: Install and show git version | ||
run: apt-get -y install git && git --version | ||
id: git-install | ||
- name: run chopstick forking kusama | ||
run: npx --yes @acala-network/chopsticks@latest --config ./chopsticks-config.yml | ||
- uses: isbang/[email protected] | ||
with: | ||
compose-file: './docker-compose.yml' | ||
- name: Install indexer deps | ||
working-directory: squid | ||
run: npm ci | ||
- name: run indexer routine | ||
run: npm run codegen; npm run typegen; npm run build; npm run db:migrate; node -r dotenv/config lib/main dotenv_config_path=assets/envs/.env.chopsticks | ||
- name: Graphql server | ||
run: npm run start:graphql-server | ||
working-directory: squid | ||
run: | | ||
npm run codegen | ||
npm run typegen | ||
npm run build | ||
npm run db:migrate | ||
# Install NPM dependencies, cache them correctly | ||
# and run all Cypress tests | ||
- name: Cypress run | ||
uses: cypress-io/github-action@v6 | ||
with: | ||
working-directory: packages/ui | ||
install-command: yarn install | ||
start: 'yarn start' | ||
start: | | ||
npx --yes @acala-network/chopsticks@latest --config ../../chopsticks-config.yml | ||
cd packages/ui && yarn start | ||
cd squid && npm run start:graphql-server | ||
cd squid && node -r dotenv/config ../../squid/lib/main dotenv_config_path=assets/envs/.env.chopsticks | ||
wait-on: 'http://localhost:3333' | ||
# custom test command to run | ||
command: yarn test:ci | ||
|