Build and Test / build-and-test-backend (push) Successful in 19s
Build and Test / build-and-test-frontend (push) Successful in 32s
Build and Test / build-and-test-backend (pull_request) Successful in 21s
Build and Test / build-and-test-frontend (pull_request) Successful in 32s
50 lines
951 B
YAML
50 lines
951 B
YAML
name: Build and Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- develop
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- develop
|
|
|
|
jobs:
|
|
build-and-test-backend:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.24.5"
|
|
|
|
- name: Tidy and Vendor
|
|
run: cd backend && go mod tidy && go mod vendor
|
|
|
|
- name: build
|
|
run: cd backend && go build -v ./...
|
|
|
|
- name: test
|
|
run: cd backend && go test -v ./...
|
|
|
|
build-and-test-frontend:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-verion: "24.1.0"
|
|
|
|
- name: Install dependencies
|
|
run: cd frontend && npm ci
|
|
|
|
- name: Build
|
|
run: cd frontend && npm run build
|