Skip to content

Fix npm workspace lock file and CI configuration #1111

Fix npm workspace lock file and CI configuration

Fix npm workspace lock file and CI configuration #1111

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
pkg:
name: pkg (shared library)
runs-on: ubuntu-latest
defaults:
run:
working-directory: pkg
steps:
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.26'
- name: Download dependencies
run: go mod download
- name: Run tests
run: go test ./...
- name: Build
run: go build ./...
backend:
name: Backend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.26'
- name: Download dependencies
run: go mod download
- name: Run tests
run: go test ./...
- name: Build
run: go build -o explorer ./cmd/explorer
frontend:
name: Frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Install dependencies
run: npm ci
- name: Type check
run: npm run tsc
working-directory: web
- name: Build
run: npm run build
working-directory: web