Skip to content

Merge branch 'use_venv' into testing #277

Merge branch 'use_venv' into testing

Merge branch 'use_venv' into testing #277

Workflow file for this run

name: Unit test and build
on: [push, pull_request]
jobs:
build-tui:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23.3'
cache-dependency-path: frontend-tui/go.sum
- name: Test
run: |
cd frontend-tui
go test -v
- name: Build
run: |
cd frontend-tui
export GOARCH=amd64
export CGO_ENABLED=0
go build -v -ldflags="-s -w" -o opinionated-installer-tui
- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
with:
name: tui-frontend-binary
path: frontend-tui/opinionated-installer-tui
build-web-gui:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: 'frontend/package-lock.json'
- name: Build
run: |
cd frontend
npm ci
npm run build
- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
with:
name: browser-gui-frontend-dist
path: frontend/dist/