File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -26,25 +26,31 @@ jobs:
26
26
- name : Install and show git version
27
27
run : apt-get -y install git && git --version
28
28
id : git-install
29
- - name : run chopstick forking kusama
30
- run : npx --yes @acala-network/chopsticks@latest --config ./chopsticks-config.yml
31
29
- uses : isbang/compose-action@v1.5.1
32
30
with :
33
31
compose-file : ' ./docker-compose.yml'
34
32
- name : Install indexer deps
33
+ working-directory : squid
35
34
run : npm ci
36
35
- 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
40
42
# Install NPM dependencies, cache them correctly
41
43
# and run all Cypress tests
42
44
- name : Cypress run
43
45
uses : cypress-io/github-action@v6
44
46
with :
45
47
working-directory : packages/ui
46
48
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
48
54
wait-on : ' http://localhost:3333'
49
55
# custom test command to run
50
56
command : yarn test:ci
You can’t perform that action at this time.
0 commit comments