Movendo o step customizado para definitions

This commit is contained in:
Leandro Costa 2023-01-27 07:56:34 -03:00
parent 1be54a60a3
commit 7bbc76f445

View file

@ -1,17 +1,18 @@
image: node:18-alpine
pipelines:
custom:
definitions:
steps:
- step: &build-and-test
name: Build and Test
caches:
- node
script:
- yarn install
- yarn build
- mkdir dist/src
- cp package.json dist/
artifacts:
- dist
name: Build and Test
caches:
- node
script:
- yarn install
- yarn build
- mkdir dist/src
- cp package.json dist/
artifacts:
- dist
pipelines:
branches:
default:
<<: *build-and-test