Skip to content

Commit

Permalink
[#3] .Fix integration test in one step
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasObenaus committed Feb 5, 2020
1 parent 2bc98ba commit 693b24b
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,16 @@ jobs:
- name: Build
run: make build

- name: Run the unit tests
run: make test

- name: Install linter and lint the code
run: |
curl -sSfL https://github.com/raw/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.23.3
export PATH=$PATH:$(go env GOPATH)/bin
golangci-lint --version
make lint
test-preparation:
name: TestPreparation
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: Start the local gremlin as preparation for the integration test
run: make infra.up
test:
name: Test
runs-on: ubuntu-latest
needs: test-preparation
needs: build
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
Expand All @@ -49,5 +37,11 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: Run the integration tests
run: make test.integration
- name: Run the unit tests
run: make test

- name: Start the local gremlin as preparation for the integration test and run the integration tests
run: |
make infra.up
make test.integration
make infra.down

0 comments on commit 693b24b

Please sign in to comment.