-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructure integration tests + docker env
- Loading branch information
1 parent
d821378
commit 8ea8fbe
Showing
11 changed files
with
98 additions
and
50 deletions.
There are no files selected for viewing
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,23 @@ | ||
name: Integration Contracts (Vendor, Examples) | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
integration_contracts_run_tests: | ||
name: Run Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 | ||
- name: Install Nix | ||
uses: cachix/install-nix-action@d64e0553100205688c0fb2fa16edb0fc8663c590 # v17 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
|
||
- name: Test | ||
run: nix develop -c make test-integration-contracts |
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
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
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
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
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,28 @@ | ||
#!/usr/bin/env bash | ||
# TODO: this script needs to be replaced with a predefined K8s enviroment | ||
|
||
echo "Cleaning up StarkNet Devnet container..." | ||
|
||
dpid=`docker ps | grep chainlink-starknet.starknet-devnet | awk '{print $1}'`; | ||
echo "Checking for existing 'chainlink-starknet.starknet-devnet' docker container..." | ||
if [ -z "$dpid" ] | ||
then | ||
echo "No docker StarkNet Devnet container running."; | ||
else | ||
docker kill $dpid; | ||
docker rm $dpid; | ||
fi | ||
|
||
echo "Cleaning up Hardhat container..." | ||
|
||
dpid=`docker ps | grep chainlink-starknet.hardhat | awk '{print $1}'`; | ||
echo "Checking for existing 'chainlink-starknet.hardhat' docker container..." | ||
if [ -z "$dpid" ] | ||
then | ||
echo "No docker Hardhat container running."; | ||
else | ||
docker kill $dpid; | ||
docker rm $dpid; | ||
fi | ||
|
||
echo "Cleanup finished." |
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
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
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
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
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