mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 03:41:01 +00:00
Use native directory
and run with Node 18 (#1337)
- replace `cd` with native key `directory` (#1329) - Update Node images to 18
This commit is contained in:
parent
d7c2fdd05f
commit
da7d13ad4e
5 changed files with 13 additions and 13 deletions
|
@ -4,7 +4,7 @@ depends_on:
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
- &golang_image 'golang:1.18'
|
- &golang_image 'golang:1.18'
|
||||||
- &node_image 'node:16-alpine'
|
- &node_image 'node:18-alpine'
|
||||||
- &when_path
|
- &when_path
|
||||||
# related config files
|
# related config files
|
||||||
- ".woodpecker/binaries.yml"
|
- ".woodpecker/binaries.yml"
|
||||||
|
@ -19,8 +19,8 @@ pipeline:
|
||||||
build-web:
|
build-web:
|
||||||
group: prepare
|
group: prepare
|
||||||
image: *node_image
|
image: *node_image
|
||||||
|
directory: web/
|
||||||
commands:
|
commands:
|
||||||
- cd web/
|
|
||||||
- corepack enable
|
- corepack enable
|
||||||
- pnpm install --frozen-lockfile
|
- pnpm install --frozen-lockfile
|
||||||
- pnpm build
|
- pnpm build
|
||||||
|
|
|
@ -4,7 +4,7 @@ depends_on:
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
- &golang_image 'golang:1.18'
|
- &golang_image 'golang:1.18'
|
||||||
- &node_image 'node:16-alpine'
|
- &node_image 'node:18-alpine'
|
||||||
- &xgo_image 'techknowlogick/xgo:go-1.18.x'
|
- &xgo_image 'techknowlogick/xgo:go-1.18.x'
|
||||||
- &xgo_version 'go-1.18.x'
|
- &xgo_version 'go-1.18.x'
|
||||||
- &platforms_release 'linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/386,linux/amd64,linux/ppc64le,linux/riscv64,linux/s390x,windows/amd64,freebsd/arm64,freebsd/amd64,openbsd/arm64,openbsd/amd64'
|
- &platforms_release 'linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/386,linux/amd64,linux/ppc64le,linux/riscv64,linux/s390x,windows/amd64,freebsd/arm64,freebsd/amd64,openbsd/arm64,openbsd/amd64'
|
||||||
|
@ -24,8 +24,8 @@ pipeline:
|
||||||
###############
|
###############
|
||||||
build-web:
|
build-web:
|
||||||
image: *node_image
|
image: *node_image
|
||||||
|
directory: web/
|
||||||
commands:
|
commands:
|
||||||
- cd web/
|
|
||||||
- corepack enable
|
- corepack enable
|
||||||
- pnpm install --frozen-lockfile
|
- pnpm install --frozen-lockfile
|
||||||
- pnpm build
|
- pnpm build
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
variables:
|
variables:
|
||||||
- &golang_image 'golang:1.18'
|
- &golang_image 'golang:1.18'
|
||||||
- &node_image 'node:16-alpine'
|
- &node_image 'node:18-alpine'
|
||||||
- &when_path
|
- &when_path
|
||||||
- "docs/**"
|
- "docs/**"
|
||||||
- ".woodpecker/docs.yml"
|
- ".woodpecker/docs.yml"
|
||||||
|
@ -18,8 +18,8 @@ pipeline:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: *node_image
|
image: *node_image
|
||||||
|
directory: docs/
|
||||||
commands:
|
commands:
|
||||||
- cd docs/
|
|
||||||
- corepack enable
|
- corepack enable
|
||||||
- pnpm install --frozen-lockfile
|
- pnpm install --frozen-lockfile
|
||||||
- pnpm build
|
- pnpm build
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
variables:
|
variables:
|
||||||
- &golang_image 'golang:1.18'
|
- &golang_image 'golang:1.18'
|
||||||
- &node_image 'node:16-alpine'
|
- &node_image 'node:18-alpine'
|
||||||
- &when_path
|
- &when_path
|
||||||
# related config files
|
# related config files
|
||||||
- ".woodpecker/test.yml"
|
- ".woodpecker/test.yml"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
variables:
|
variables:
|
||||||
- &node_image 'node:16-alpine'
|
- &node_image 'node:18-alpine'
|
||||||
- &when_path
|
- &when_path
|
||||||
# related config files
|
# related config files
|
||||||
- ".woodpecker/web.yml"
|
- ".woodpecker/web.yml"
|
||||||
|
@ -9,8 +9,8 @@ variables:
|
||||||
pipeline:
|
pipeline:
|
||||||
deps:
|
deps:
|
||||||
image: *node_image
|
image: *node_image
|
||||||
|
directory: web/
|
||||||
commands:
|
commands:
|
||||||
- cd web/
|
|
||||||
- corepack enable
|
- corepack enable
|
||||||
- pnpm install --frozen-lockfile
|
- pnpm install --frozen-lockfile
|
||||||
when:
|
when:
|
||||||
|
@ -19,8 +19,8 @@ pipeline:
|
||||||
lint:
|
lint:
|
||||||
group: test
|
group: test
|
||||||
image: *node_image
|
image: *node_image
|
||||||
|
directory: web/
|
||||||
commands:
|
commands:
|
||||||
- cd web/
|
|
||||||
- corepack enable
|
- corepack enable
|
||||||
- pnpm lint
|
- pnpm lint
|
||||||
when:
|
when:
|
||||||
|
@ -29,8 +29,8 @@ pipeline:
|
||||||
formatcheck:
|
formatcheck:
|
||||||
group: test
|
group: test
|
||||||
image: *node_image
|
image: *node_image
|
||||||
|
directory: web/
|
||||||
commands:
|
commands:
|
||||||
- cd web/
|
|
||||||
- corepack enable
|
- corepack enable
|
||||||
- pnpm formatcheck
|
- pnpm formatcheck
|
||||||
when:
|
when:
|
||||||
|
@ -39,8 +39,8 @@ pipeline:
|
||||||
typecheck:
|
typecheck:
|
||||||
group: test
|
group: test
|
||||||
image: *node_image
|
image: *node_image
|
||||||
|
directory: web/
|
||||||
commands:
|
commands:
|
||||||
- cd web/
|
|
||||||
- corepack enable
|
- corepack enable
|
||||||
- pnpm typecheck
|
- pnpm typecheck
|
||||||
when:
|
when:
|
||||||
|
@ -58,8 +58,8 @@ pipeline:
|
||||||
test:
|
test:
|
||||||
group: test
|
group: test
|
||||||
image: *node_image
|
image: *node_image
|
||||||
|
directory: web/
|
||||||
commands:
|
commands:
|
||||||
- cd web/
|
|
||||||
- corepack enable
|
- corepack enable
|
||||||
- pnpm test
|
- pnpm test
|
||||||
when:
|
when:
|
||||||
|
|
Loading…
Reference in a new issue