Update go.yml

Signed-off-by: Kevin Kandlbinder <kevin@kevink.dev>
This commit is contained in:
Kevin Kandlbinder 2022-09-06 00:34:55 +02:00 committed by GitHub
parent 70470dbece
commit d362d17e33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,7 @@ jobs:
path: webui/build
build-backend:
name: Build Backend
runs-on: ubuntu-latest
needs: build-webui
steps:
@ -46,10 +47,16 @@ jobs:
path: webui/build
- name: Build with WebUI
run: go build -tags withUI -v ./...
run: go build -o build/with-ui/ -tags withUI -v ./...
- name: Build without WebUI
run: go build -v ./...
run: go build -o build/without-ui/ -v ./...
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: veles-dist
path: build
- name: Test
run: go test -v ./...