Skip to content

Commit 817c62d

Browse files
committed
servers in parrallel
1 parent 9fd0b6c commit 817c62d

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/cypress-tests.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,31 @@ jobs:
2626
- name: Install and show git version
2727
run: apt-get -y install git && git --version
2828
id: git-install
29-
- name: run chopstick forking kusama
30-
run: npx --yes @acala-network/chopsticks@latest --config ./chopsticks-config.yml
3129
- uses: isbang/compose-action@v1.5.1
3230
with:
3331
compose-file: './docker-compose.yml'
3432
- name: Install indexer deps
33+
working-directory: squid
3534
run: npm ci
3635
- name: run indexer routine
37-
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
38-
- name: Graphql server
39-
run: npm run start:graphql-server
36+
working-directory: squid
37+
run: |
38+
npm run codegen
39+
npm run typegen
40+
npm run build
41+
npm run db:migrate
4042
# Install NPM dependencies, cache them correctly
4143
# and run all Cypress tests
4244
- name: Cypress run
4345
uses: cypress-io/github-action@v6
4446
with:
4547
working-directory: packages/ui
4648
install-command: yarn install
47-
start: 'yarn start'
49+
start: |
50+
npx --yes @acala-network/chopsticks@latest --config ../../chopsticks-config.yml
51+
cd packages/ui && yarn start
52+
cd squid && npm run start:graphql-server
53+
cd squid && node -r dotenv/config ../../squid/lib/main dotenv_config_path=assets/envs/.env.chopsticks
4854
wait-on: 'http://localhost:3333'
4955
# custom test command to run
5056
command: yarn test:ci

0 commit comments

Comments
 (0)