From 44ee4fa030478237b9e1ae65f23dafb8325fad06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jefferson=20Gir=C3=A3o?= Date: Tue, 4 Feb 2020 09:20:15 +0100 Subject: [PATCH] chore: add CI worflow for inventory backend --- .github/workflows/inventory.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/inventory.yml diff --git a/.github/workflows/inventory.yml b/.github/workflows/inventory.yml new file mode 100644 index 0000000000..79d0dfb59a --- /dev/null +++ b/.github/workflows/inventory.yml @@ -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 \ No newline at end of file