Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Commit

Permalink
ci(plugins/ethereum): Enable GitLab CI tests
Browse files Browse the repository at this point in the history
Enabled CI tests on GitLab for Ethereum plugin.

Co-authored-by: mroz <[email protected]>
  • Loading branch information
aloisklink and mroz22 committed Mar 14, 2022
1 parent de7ff12 commit c69f0ba
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,3 +299,21 @@ node:
- /trezor-user-env/run.sh &
- sleep 10
- nix-shell --run "yarn babel-node ./examples/node/index.js"

test ethereum plugin:
stage: test
dependencies:
# we only need the submodules part of this, not the node_modules
- "setup environment"
# Required only to make the `nix-shell` command available
# Alternatively, we could replace with generic `image: nixos/nix:latest`
image: registry.gitlab.com/satoshilabs/trezor/trezor-user-env/trezor-user-env:latest
script:
- nix-shell --run "cd src/js/plugins/ethereum/ && yarn install --cache-folder ./.yarn-cache"
- nix-shell --run "cd src/js/plugins/ethereum/ && yarn test:unit"
cache:
key:
files:
- src/js/plugins/ethereum/yarn.lock
paths:
- src/js/plugins/ethereum/.yarn-cache

0 comments on commit c69f0ba

Please sign in to comment.