Skip to content

chore: create build.yml Closes #18 #3

chore: create build.yml Closes #18

chore: create build.yml Closes #18 #3

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Build
on:
pull_request:
branches: [ "main" ]
jobs:
build-backend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./api
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23'
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
build-frontend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v4
- name: Setup npm
uses: actions/setup-node@v4.1.0
with:
node-version: 18.8.x
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm run test:browser