Skip to content

Commit

Permalink
Restore one workflow + introduce testkit step
Browse files Browse the repository at this point in the history
  • Loading branch information
popzxc committed Jan 13, 2021
1 parent 836968f commit f8e953c
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 126 deletions.
54 changes: 0 additions & 54 deletions .github/workflows/ci-integration.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/ci-lints.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/ci-unit.yml

This file was deleted.

125 changes: 125 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
name: CI

on:
pull_request:
push:
branches:
- staging
- trying

jobs:
ci-lint:
runs-on: [self-hosted, CI-worker]

steps:

- uses: actions/checkout@v2

- name: setup-env
run: |
echo ZKSYNC_HOME=$(pwd) >> $GITHUB_ENV
echo $(pwd)/bin >> $GITHUB_PATH
- name: lints
run: |
ci_run zk
ci_run zk fmt --check
ci_run zk lint --check
ci-all:
runs-on: [self-hosted, CI-worker]

steps:
- uses: actions/checkout@v2

- name: setup-env
run: |
echo ZKSYNC_HOME=$(pwd) >> $GITHUB_ENV
echo $(pwd)/bin >> $GITHUB_PATH
- name: start-services
run: |
docker-compose -f docker-compose-runner.yml down
docker-compose -f docker-compose-runner.yml up --build -d geth postgres zk
ci_run sccache --start-server
- name: init
run: |
ci_run ln -s /usr/src/keys/setup keys/setup
ci_run zk
ci_run zk dummy-prover enable --no-redeploy
ci_run zk init
- name: liquidity-token
run: docker-compose -f docker-compose-runner.yml restart dev-liquidity-token-watcher

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

- name: js-unit-tests
run: ci_run zk test js

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

ci-integration:
runs-on: [self-hosted, CI-worker]

steps:
- uses: actions/checkout@v2

- name: setup-env
run: |
echo ZKSYNC_HOME=$(pwd) >> $GITHUB_ENV
echo $(pwd)/bin >> $GITHUB_PATH
- name: start-services
run: |
docker-compose -f docker-compose-runner.yml down
docker-compose -f docker-compose-runner.yml up --build -d geth postgres zk
ci_run sccache --start-server
- name: init
run: |
ci_run ln -s /usr/src/keys/setup keys/setup
ci_run zk
ci_run zk dummy-prover enable --no-redeploy
ci_run zk init
- name: liquidity-token
run: docker-compose -f docker-compose-runner.yml restart dev-liquidity-token-watcher

- name: run-services
run: ci_run sh infrastructure/ci-scripts/run_services.sh

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

- name: integration-api
run: ci_run zk test i api

- name: integration-zcli
run: ci_run zk test i zcli

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


ci-testkit:
runs-on: [self-hosted, CI-worker]

steps:
- name: prepare
run: |
echo ZKSYNC_HOME=$(pwd) >> $GITHUB_ENV
echo $(pwd)/bin >> $GITHUB_PATH
- name: init
run: |
ci_run ln -s /usr/src/keys/setup keys/setup
ci_run zk
ci_run zk dummy-prover enable --no-redeploy
ci_run zk run verify-keys unpack
- name: integration-testkit
run: ci_run zk test integration testkit

0 comments on commit f8e953c

Please sign in to comment.