ci: Cache Go Dependencies

master
ALI Hamza 2019-09-05 11:09:54 +07:00
parent 2023f59b6c
commit 4b55fed67d
No known key found for this signature in database
GPG Key ID: BCA8A46C87798C4C
1 changed files with 15 additions and 0 deletions

@ -3,13 +3,28 @@ name: Build
steps: steps:
- name: Build - name: Build
image: golang:1.12 image: golang:1.12
volumes:
- name: deps
path: /go
commands: commands:
- go build . - go build .
- name: Unit Tests - name: Unit Tests
image: golang:1.12 image: golang:1.12
volumes:
- name: deps
path: /go
commands: commands:
- go test -tag=unit . - go test -tag=unit .
- name: Integration Tests - name: Integration Tests
image: golang:1.12 image: golang:1.12
volumes:
- name: deps
path: /go
commands: commands:
- go test -tag=integration . - go test -tag=integration .
volumes:
- name: deps
temp: {}