mirror of
https://github.com/luxfi/oracle.git
synced 2026-10-30 15:23:21 +00:00
22 lines
529 B
Bash
Executable File
22 lines
529 B
Bash
Executable File
#!/bin/bash
|
|
|
|
PACKAGE=$1
|
|
|
|
cat << EOF
|
|
test-${PACKAGE:5}:
|
|
docker:
|
|
- image: cimg/node:16.17.0
|
|
- image: trufflesuite/ganache-cli
|
|
command: ganache-cli -i 1234 -l 9000000 -p 9545
|
|
working_directory: ~/protocol
|
|
resource_class: large
|
|
steps:
|
|
- restore_cache:
|
|
key: protocol-completed-build-{{ .Environment.CIRCLE_SHA1 }}
|
|
- run:
|
|
name: Run tests
|
|
command: |
|
|
export PATH="$PATH:/home/circleci/.foundry/bin"
|
|
yarn test --scope ${PACKAGE};
|
|
EOF
|