Merge pull request #21 from spotify/inventory-ci

chore: add CI worflow for inventory backend
This commit is contained in:
Jefferson Girão
2020-02-04 09:51:51 +01:00
committed by GitHub
2 changed files with 30 additions and 1 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ on:
push:
paths:
- 'frontend/**'
- '.github/**'
- '.github/workflows/frontend.yml'
jobs:
build:
+29
View File
@@ -0,0 +1,29 @@
name: Inventory CI
on:
push:
paths:
- 'backend/inventory/**'
- '.github/workflows/inventory.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.12
- name: checkout code
uses: actions/checkout@v1
- name: setup env
run: |
echo "::set-env name=GOPATH::$(go env GOPATH)"
echo "::add-path::$(go env GOPATH)/bin"
shell: bash
- name: build
run: go build -v ./...
working-directory: ./backend/inventory
- name: test
run: go test ./... -short
working-directory: ./backend/inventory