Skip to content

Commit

Permalink
ci: enable all the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
antomor committed Sep 15, 2023
1 parent 447f87b commit b10ee6c
Showing 1 changed file with 51 additions and 51 deletions.
102 changes: 51 additions & 51 deletions .github/workflows/ci-iov.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Unit/integration tests
on: [pull_request]
# FIXME:
# pull_request:
# types: [ready_for_review]

Expand Down Expand Up @@ -57,65 +58,64 @@ jobs:
- name: prover-unit-tests
run: ci_run zk test prover

# - name: contracts-unit-tests
# run: ci_run zk test contracts
- name: contracts-unit-tests
run: ci_run zk test contracts

# - name: witness-generator-unit-tests
# run: ci_run zk test witness-generator
- name: witness-generator-unit-tests
run: ci_run zk test witness-generator

# - name: server-rust-unit-tests
# run: ci_run zk test server-rust
- name: server-rust-unit-tests
run: ci_run zk test server-rust

# - name: db-unit-tests
# run: ci_run zk test db
- name: db-unit-tests
run: ci_run zk test db

# - name: rust-api-unit-tests
# run: ci_run zk test rust-api

# - name: start-services (rskj, postgres, zk)
# run: |
# docker-compose -f docker-compose-runner.yml down
# docker-compose -f docker-compose-runner.yml pull
# docker-compose -f docker-compose-runner.yml up --build -d rskj postgres zk
# ci_run sccache --start-server &

# - name: run zk init
# run: |
# ci_run zk
# ci_run zk init

# - name: restart dev-ticker
# run: docker-compose -f docker-compose-runner.yml restart dev-ticker

# - name: run-services
# run: |
# ci_run zk server core &>server.log &
# ci_run zk server api &>api.log &
# ci_run sleep 10
# ci_run zk dummy-prover run &>dummy_prover.log &
# ci_run sleep 100

# - name: server-integration-tests
# run: ci_run zk test i server

# - name: api-integration-tests
# run: |
# ci_run zk test i api
# ci_run zk test i api-docs

# - name: rust-sdk-integration-tests
# run: ci_run zk test i rust-sdk

# - name: withdrawal-helpers-integration-tests
# run: ci_run zk test i withdrawal-helpers
- name: rust-api-unit-tests
run: ci_run zk test rust-api

- name: start-services (rskj, postgres, zk)
run: |
docker-compose -f docker-compose-runner.yml down
docker-compose -f docker-compose-runner.yml pull
docker-compose -f docker-compose-runner.yml up --build -d rskj postgres zk
ci_run sccache --start-server &
- name: run zk init
run: |
ci_run zk
ci_run zk init
- name: restart dev-ticker
run: docker-compose -f docker-compose-runner.yml restart dev-ticker

- name: run-services
run: |
ci_run zk server core &>server.log &
ci_run zk server api &>api.log &
ci_run sleep 10
ci_run zk dummy-prover run &>dummy_prover.log &
ci_run sleep 100
- name: server-integration-tests
run: ci_run zk test i server

- name: api-integration-tests
run: |
ci_run zk test i api
ci_run zk test i api-docs
- name: rust-sdk-integration-tests
run: ci_run zk test i rust-sdk

- name: withdrawal-helpers-integration-tests
run: ci_run zk test i withdrawal-helpers

- name: Show logs
if: always()
# FIXME
# ci_run cat server.log
# ci_run cat api.log
# ci_run cat dummy_prover.log
run: |
ci_run cat server.log
ci_run cat api.log
ci_run cat dummy_prover.log
ci_run mkdir -p ./target/release/coverage/
ci_run "grcov . --binary-path ./target/release/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore '/*' -o ./target/release/coverage/lcov.info"
docker compose -f docker-compose-runner.yml cp zk:/usr/src/zksync/target/release/coverage/lcov.info lcov.info
Expand Down

0 comments on commit b10ee6c

Please sign in to comment.