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:
qwerty287 2022-10-25 14:51:29 +02:00 committed by GitHub
parent d7c2fdd05f
commit da7d13ad4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 13 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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"

View file

@ -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: