Files
nigiri/.github/workflows/test.yml
Marco Argentieri 70e22ba402 refactor codebase with urfave/cli (#120)
* clean

* load datadir with resources and start compose

* start --liquid

* check if is running already

* Add rpc command

* Add logs and faucet commands

* Add mint command

* Add push command

* Move state into dedicated pkg

* less code for isRunning check

* Add --ci flag to start command

* Add NIGIRI_DATADIR env var

* add update command

* Update readme, makefile and goreleaser

* update test gh action

* skip tests

* print endpoint in start command

* Add a default network to docker compose file.

Containers started through this docker compose file will be in this isolated network.
Note: the minimum version for the docker compose file format is 3.5 which introduces `name` for networks. This file format requires a docker engine version of 17.12.0+.

* add prerelease: auto

* makefile: release commands

* go version

* use global flag --datadir for the folder

* wrap datadir in variable

* use single compose file & move state to internal

* remove unused state keys

* return err in test

* docker-compose: use latest version

* print endpoint of services based on --liquid flag

Co-authored-by: Philipp Hoenisch <philipp@hoenisch.at>
2021-08-06 18:09:13 +02:00

40 lines
760 B
YAML

name: Go
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
integration:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
- name: Cache Go modules
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Get dependencies
run: go get -v -t -d ./...
- name: Test
run: |
make fmt
make install
make test-ci