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
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version-file: 'go.mod'
|
go-version-file: 'go.mod'
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v6
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
- name: Build arm64 gui
|
- name: Build arm64 gui
|
||||||
uses: ./.github/actions/prepare
|
uses: ./.github/actions/prepare
|
||||||
with:
|
with:
|
||||||
@@ -47,6 +51,10 @@ jobs:
|
|||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version-file: 'go.mod'
|
go-version-file: 'go.mod'
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v6
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
- name: Build amd64 gui
|
- name: Build amd64 gui
|
||||||
uses: ./.github/actions/prepare
|
uses: ./.github/actions/prepare
|
||||||
with:
|
with:
|
||||||
@@ -71,6 +79,10 @@ jobs:
|
|||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version-file: 'go.mod'
|
go-version-file: 'go.mod'
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v6
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
- name: Setup Zig
|
- name: Setup Zig
|
||||||
uses: mlugg/setup-zig@v1
|
uses: mlugg/setup-zig@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@@ -18,5 +18,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version-file: 'go.mod'
|
go-version-file: 'go.mod'
|
||||||
|
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v6
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: make test
|
run: make test
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
FROM golang:alpine3.21 AS build
|
FROM golang:alpine3.21 AS build
|
||||||
RUN apk add build-base git
|
RUN apk add build-base git nodejs npm
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN --mount=type=cache,target=/root/.cache/go-build \
|
RUN --mount=type=cache,target=/root/.cache/go-build \
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ RUN apt install -y \
|
|||||||
gcc-aarch64-linux-gnu \
|
gcc-aarch64-linux-gnu \
|
||||||
binutils-aarch64-linux-gnu binutils-aarch64-linux-gnu-dbg \
|
binutils-aarch64-linux-gnu binutils-aarch64-linux-gnu-dbg \
|
||||||
gcc-arm-linux-gnueabihf \
|
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 \
|
RUN env DEBIAN_FRONTEND=noninteractive \
|
||||||
apt install -y qemu-user qemu-user-static
|
apt install -y qemu-user qemu-user-static
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user