Skip to content

build: specify package-lock.json path #103

build: specify package-lock.json path

build: specify package-lock.json path #103

Workflow file for this run

name: build
on:
push:
paths-ignore: [ '**.md' ]
pull_request:
paths-ignore: [ '**.md']
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: web/package-lock.json
- name: Install dependencies
run: npm ci --prefix web
- name: Build
run: npm run build --prefix web
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.22.1
- name: Install dependencies
run: go mod download
- name: Build
run: go build -v ./cmd/undershorts
- name: Test
run: go test -v ./...