forked from matter-labs/zksync
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore one workflow + introduce testkit step
- Loading branch information
Showing
4 changed files
with
125 additions
and
126 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |