From 70cdd79737a9dfb973bf1b5b1673ceb120315523 Mon Sep 17 00:00:00 2001 From: Chen-I Lim Date: Wed, 6 Jan 2021 13:52:25 -0800 Subject: [PATCH] GitHub Actions: Build linux app --- .github/workflows/build.yml | 10 ++++++++-- Makefile | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 99f468852..6f65b5b47 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,8 +23,8 @@ jobs: with: go-version: 1.15 - - name: Build server Linux package - run: make server-linux-package + - name: Build Linux server and app + run: make server-linux-package linux-app - name: Copy server binary for Cypress run: cp bin/linux/octoserver bin/ @@ -35,6 +35,12 @@ jobs: name: octo-linux-amd64.tar.gz path: ${{ github.workspace }}/dist/octo-linux-amd64.tar.gz + - name: Upload app package + uses: actions/upload-artifact@v1 + with: + name: tasks-linux.tar.gz + path: ${{ github.workspace }}/linux/dist/tasks-linux.tar.gz + - name: ESLint run: cd webapp; npm run check diff --git a/Makefile b/Makefile index 59aada844..cc3656640 100644 --- a/Makefile +++ b/Makefile @@ -49,7 +49,7 @@ server-lint: cd server; golangci-lint run -p format -p unused -p complexity -p bugs -p performance -E asciicheck -E depguard -E dogsled -E dupl -E funlen -E gochecknoglobals -E gochecknoinits -E goconst -E gocritic -E godot -E godox -E goerr113 -E goheader -E golint -E gomnd -E gomodguard -E goprintffuncname -E gosimple -E interfacer -E lll -E misspell -E nlreturn -E nolintlint -E stylecheck -E unconvert -E whitespace -E wsl --skip-dirs services/store/sqlstore/migrations/ ./... server-test: - cd server; go test ./... + cd server; go test -v ./... server-doc: cd server; go doc ./...