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

View file

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

View file

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

View file

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

View file

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