GitHub Actions: Build linux app

This commit is contained in:
Chen-I Lim 2021-01-06 13:52:25 -08:00
parent 14ab03cb97
commit 70cdd79737
2 changed files with 9 additions and 3 deletions

View file

@ -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

View file

@ -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 ./...