upgrade runners + deps #57
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
# | |
# 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 |