Skip to content

Commit

Permalink
[#3] .Update separated pipeline steps
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasObenaus committed Feb 5, 2020
1 parent e96ad94 commit 251f80e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: Run the unit tests and lint the code
run: make test lint
- name: Build
run: make build

- name: Run the unit tests
run: make test

- name: Lint the code
run: make lint

- name: Start the local gremlin as preparation for the integration test
run: make infra.up
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

## v?.?.? (2020-??-??)

- With [#3](https://github.com/supplyon/go-gremlin-cosmos/issues/3) build, test and linting on local environment and in a github pipeline was implemented. Furthermore the local gremlin server was fixed to version 3.4.0 and the response format was tight to Graphson 2.0 (GraphSONMessageSerializerV2d0) in order to be compatible to CosmosDB. Hence all tests where adjusted accordingly. Also the integration tests where separated from the unit tests and moved into a separate test suite.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ all: test lint finish
help: ## Prints the help
@echo "$$(grep -hE '^\S+:.*##' $(MAKEFILE_LIST) | sed -e 's/:.*##\s*/:/' -e 's/^\(.\+\):\(.*\)/\1\:\2/' | column -c2 -t -s :)"

build: sep ## Builds the library
@echo "--> Build"
@go build .

test: sep ## Runs all unittests and generates a coverage report.
@echo "--> Run the unit-tests"
@go test -timeout 30s -run "^Test.*[^I,T]$$" -covermode=count
Expand Down

0 comments on commit 251f80e

Please sign in to comment.