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:
|
||||
- &golang_image 'golang:1.18'
|
||||
- &node_image 'node:16-alpine'
|
||||
- &node_image 'node:18-alpine'
|
||||
- &when_path
|
||||
# related config files
|
||||
- ".woodpecker/binaries.yml"
|
||||
|
@ -19,8 +19,8 @@ pipeline:
|
|||
build-web:
|
||||
group: prepare
|
||||
image: *node_image
|
||||
directory: web/
|
||||
commands:
|
||||
- cd web/
|
||||
- corepack enable
|
||||
- pnpm install --frozen-lockfile
|
||||
- pnpm build
|
||||
|
|
|
@ -4,7 +4,7 @@ depends_on:
|
|||
|
||||
variables:
|
||||
- &golang_image 'golang:1.18'
|
||||
- &node_image 'node:16-alpine'
|
||||
- &node_image 'node:18-alpine'
|
||||
- &xgo_image 'techknowlogick/xgo: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'
|
||||
|
@ -24,8 +24,8 @@ pipeline:
|
|||
###############
|
||||
build-web:
|
||||
image: *node_image
|
||||
directory: web/
|
||||
commands:
|
||||
- cd web/
|
||||
- corepack enable
|
||||
- pnpm install --frozen-lockfile
|
||||
- pnpm build
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
variables:
|
||||
- &golang_image 'golang:1.18'
|
||||
- &node_image 'node:16-alpine'
|
||||
- &node_image 'node:18-alpine'
|
||||
- &when_path
|
||||
- "docs/**"
|
||||
- ".woodpecker/docs.yml"
|
||||
|
@ -18,8 +18,8 @@ pipeline:
|
|||
|
||||
build:
|
||||
image: *node_image
|
||||
directory: docs/
|
||||
commands:
|
||||
- cd docs/
|
||||
- corepack enable
|
||||
- pnpm install --frozen-lockfile
|
||||
- pnpm build
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
variables:
|
||||
- &golang_image 'golang:1.18'
|
||||
- &node_image 'node:16-alpine'
|
||||
- &node_image 'node:18-alpine'
|
||||
- &when_path
|
||||
# related config files
|
||||
- ".woodpecker/test.yml"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
variables:
|
||||
- &node_image 'node:16-alpine'
|
||||
- &node_image 'node:18-alpine'
|
||||
- &when_path
|
||||
# related config files
|
||||
- ".woodpecker/web.yml"
|
||||
|
@ -9,8 +9,8 @@ variables:
|
|||
pipeline:
|
||||
deps:
|
||||
image: *node_image
|
||||
directory: web/
|
||||
commands:
|
||||
- cd web/
|
||||
- corepack enable
|
||||
- pnpm install --frozen-lockfile
|
||||
when:
|
||||
|
@ -19,8 +19,8 @@ pipeline:
|
|||
lint:
|
||||
group: test
|
||||
image: *node_image
|
||||
directory: web/
|
||||
commands:
|
||||
- cd web/
|
||||
- corepack enable
|
||||
- pnpm lint
|
||||
when:
|
||||
|
@ -29,8 +29,8 @@ pipeline:
|
|||
formatcheck:
|
||||
group: test
|
||||
image: *node_image
|
||||
directory: web/
|
||||
commands:
|
||||
- cd web/
|
||||
- corepack enable
|
||||
- pnpm formatcheck
|
||||
when:
|
||||
|
@ -39,8 +39,8 @@ pipeline:
|
|||
typecheck:
|
||||
group: test
|
||||
image: *node_image
|
||||
directory: web/
|
||||
commands:
|
||||
- cd web/
|
||||
- corepack enable
|
||||
- pnpm typecheck
|
||||
when:
|
||||
|
@ -58,8 +58,8 @@ pipeline:
|
|||
test:
|
||||
group: test
|
||||
image: *node_image
|
||||
directory: web/
|
||||
commands:
|
||||
- cd web/
|
||||
- corepack enable
|
||||
- pnpm test
|
||||
when:
|
||||
|
|
Loading…
Reference in a new issue