fix(ci): add build step and staging env

This commit is contained in:
hexxa 2022-05-14 15:17:10 +08:00 committed by Hexxa
parent 36cf1f52c9
commit a5c9610178
2 changed files with 30 additions and 4 deletions

View file

@ -4,7 +4,7 @@ name: ci-quickshare
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches:
branches:
- main
- dev-**
pull_request:
@ -33,16 +33,16 @@ jobs:
with:
node-version: "12"
- run: go version
- name: Install dependencies
run: |
yarn
- name: Backend tests
run: |
go test ./...
- name: Frontend tests
run: |
cd ./src/client/web
yarn test
- name: Build
run: |
yarn build