Skip to content

Commit

Permalink
feat(workflow): build front as well
Browse files Browse the repository at this point in the history
  • Loading branch information
yyewolf committed Aug 10, 2023
1 parent a87ed7d commit 511efc9
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Go
on: [push]

jobs:
build:
build-back:
runs-on: ubuntu-latest

steps:
Expand All @@ -11,10 +11,27 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: '1.20.x'
cache-dependency-path: go.sum
- name: Install dependencies
cache-dependency-path: backend/go.sum
- name: Install backend dependencies
run: cd backend && go mod download
- name: Build
- name: Build Go binary
run: cd backend && go build -v ./...
- name: Test with the Go CLI
run: cd backend && go test ./...
run: cd backend && go test ./...

build-front:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install front dependencies
run: cd frontend && npm install
- name: Build front
run: cd frontend && npm run build

0 comments on commit 511efc9

Please sign in to comment.