Skip to content

updated package.lock to fix build #270

updated package.lock to fix build

updated package.lock to fix build #270

name: build
on:
push:
branches:
- main
workflow_call:
jobs:
build_test_fe:
name: Build and test FE
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install Dependencies
run: npm install
working-directory: ./frontend
- name: Build Project
run: npm run build
working-directory: ./frontend
- name: Archive Production Artifact
uses: actions/upload-artifact@v4
with:
name: frontend-build
path: frontend/dist
overwrite: true
build_test_be:
name : Build and test BE
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21.x'
- name: setup dist-app directory # required for go build to embed it in the binary
run: mkdir frontend/dist-app && touch frontend/dist-app/sample.txt
- name: Install
run: go get
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...