ci: add nodejs dependency

This commit is contained in:
nkanaev
2026-07-10 21:33:12 +01:00
parent f01e2a4dbc
commit 42d0ccb2b7
4 changed files with 21 additions and 2 deletions

View File

@@ -12,6 +12,10 @@ jobs:
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- name: Setup Node
uses: actions/setup-node@v6
- name: Install dependencies
run: npm ci
- name: Build arm64 gui
uses: ./.github/actions/prepare
with:
@@ -47,6 +51,10 @@ jobs:
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- name: Setup Node
uses: actions/setup-node@v6
- name: Install dependencies
run: npm ci
- name: Build amd64 gui
uses: ./.github/actions/prepare
with:
@@ -71,6 +79,10 @@ jobs:
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- name: Setup Node
uses: actions/setup-node@v6
- name: Install dependencies
run: npm ci
- name: Setup Zig
uses: mlugg/setup-zig@v1
with:

View File

@@ -18,5 +18,11 @@ jobs:
with:
go-version-file: 'go.mod'
- name: Setup Node
uses: actions/setup-node@v6
- name: Install dependencies
run: npm ci
- name: Run tests
run: make test

View File

@@ -1,5 +1,5 @@
FROM golang:alpine3.21 AS build
RUN apk add build-base git
RUN apk add build-base git nodejs npm
WORKDIR /src
COPY . .
RUN --mount=type=cache,target=/root/.cache/go-build \

View File

@@ -7,7 +7,8 @@ RUN apt install -y \
gcc-aarch64-linux-gnu \
binutils-aarch64-linux-gnu binutils-aarch64-linux-gnu-dbg \
gcc-arm-linux-gnueabihf \
binutils-arm-linux-gnueabihf binutils-arm-linux-gnueabihf-dbg
binutils-arm-linux-gnueabihf binutils-arm-linux-gnueabihf-dbg \
nodejs npm
RUN env DEBIAN_FRONTEND=noninteractive \
apt install -y qemu-user qemu-user-static