Skip to content

Commit

Permalink
ADD: Odin-CLI test in Github Action
Browse files Browse the repository at this point in the history
This closes #17
  • Loading branch information
theycallmemac authored Jun 6, 2020
1 parent de1fb05 commit 172d3a3
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/odin-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,33 @@ jobs:
- name: Build Odin CLI
run: sudo make cli

test:
name: Test
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.13
uses: actions/setup-go@v2
with:
go-version: ^1.13
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Set Up Odin
run: |
export ODIN_MONGODB=mongodb://localhost:27017
sudo make mongodb
cd odin-engine
make build
sudo cp config/odin-config.yml /root
sudo ./odin-engine -id master-node raft0 &
- name: Get Odin CLI Dependencies
run: |
export GOBIN=$GOPATH/bin
go get -v -d ./odin-cli/...
- name: Test Odin CLI
run: go test -cover ./odin-cli/...

0 comments on commit 172d3a3

Please sign in to comment.