-
Notifications
You must be signed in to change notification settings - Fork 9
37 lines (32 loc) · 935 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Go
on: [push]
jobs:
build-back:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.20.x'
cache-dependency-path: backend/go.sum
- name: Install backend dependencies
run: cd backend && go mod download
- name: Build Go binary
run: cd backend && go build -v ./...
- name: Test with the Go CLI
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