-
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.
* fix makefile * attempt to fix ci workflow * export nats port on docker compose * attempt to fix tests * merge * upgrade deps * move to new runners * minor fix * Install docker compose * Install other version of docker-compose * fix ci * fix ci2 * Update go version * Add submodules check * fix ci * fix dependencies * fix go mod tidy * fix ci2 * fix ci * split unit test in checks ci * fix name tests * fix name tests * add more time to initialize nats * debug * Debug * debug * add nats.conf * debug * add nats cli * debug * debug100 * test * test * debug1023 * debug * Debug * debug * debug * debug * debug12313 * FIX * delete debug code * delete unnecessary config --------- Co-authored-by: Lucas Francisco López <[email protected]> Co-authored-by: Juan Leni <[email protected]>
- Loading branch information
1 parent
969cd72
commit 6333a57
Showing
9 changed files
with
67 additions
and
47 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
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,50 @@ | ||
# | ||
# Generated by @zondax/cli | ||
# | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: [main, master, dev] | ||
pull_request: | ||
branches: [main, master, dev] | ||
|
||
jobs: | ||
tests: | ||
runs-on: zondax-runners | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.20" | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y git build-essential wget curl | ||
sudo apt-get install -y gettext-base | ||
sudo curl -L "https://github.com/docker/compose/releases/download/v2.6.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | ||
sudo chmod +x /usr/local/bin/docker-compose | ||
- name: Build | ||
run: | | ||
make build | ||
- name: Nats server | ||
run: | | ||
docker-compose up -d nats | ||
sleep 10 | ||
- name: Check nats ports | ||
run: | | ||
sudo apt-get install -y net-tools | ||
netstat -nap | grep 4222 || echo "Nothing on 4222" | ||
- name: List Docker containers | ||
run: docker ps | ||
|
||
- name: Unit tests | ||
run: make test |
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
Empty file.
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