mirror of
https://github.com/nkanaev/yarr.git
synced 2026-07-15 11:06:31 +00:00
ci: add nodejs dependency
This commit is contained in:
12
.github/workflows/build-releases.yml
vendored
12
.github/workflows/build-releases.yml
vendored
@@ -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:
|
||||
|
||||
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@@ -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
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user