Skip to content

Commit

Permalink
servers in parrallel
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaut committed Nov 22, 2023
1 parent 9fd0b6c commit 817c62d
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/cypress-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 817c62d

Please sign in to comment.