All checks were successful
continuous-integration/drone/push Build is passing
Upgrade runtimes: * `node` from 21.7.3 to 22.6.0 * `yarn` from 4.1.0 to 4.4.0 Upgrade dependencies: * `@types/node` from 20.6.3 to 22.4.0 * `typescript` from 5.2.2 to 5.5.4 Add [`outdated`](https://github.com/mskelton/yarn-plugin-outdated) plugin. Reviewed-on: #52 Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com> Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: test
|
|
|
|
trigger:
|
|
branch:
|
|
- main
|
|
|
|
steps:
|
|
- name: restore cache
|
|
image: 'meltwater/drone-cache:v1.4.0'
|
|
environment:
|
|
AWS_ACCESS_KEY_ID:
|
|
from_secret: minio_user
|
|
AWS_SECRET_ACCESS_KEY:
|
|
from_secret: minio_password
|
|
settings:
|
|
archive_format: gzip
|
|
bucket: clean-architecture-cache
|
|
cache_key: '{{ .Repo.Name }}-{{ checksum ".tool-versions" }}-{{ checksum "yarn.lock" }}'
|
|
endpoint: minio:9000
|
|
mount:
|
|
- .yarn
|
|
path_style: true
|
|
region: us-east-1
|
|
restore: true
|
|
|
|
- name: test
|
|
image: 'node:22.6.0-slim'
|
|
commands:
|
|
- yarn set version 4.4.0
|
|
- yarn install
|
|
- yarn run jest
|
|
|
|
- name: rebuild cache
|
|
image: 'meltwater/drone-cache:v1.4.0'
|
|
environment:
|
|
AWS_ACCESS_KEY_ID:
|
|
from_secret: minio_user
|
|
AWS_SECRET_ACCESS_KEY:
|
|
from_secret: minio_password
|
|
settings:
|
|
archive_format: gzip
|
|
bucket: clean-architecture-cache
|
|
cache_key: '{{ .Repo.Name }}-{{ checksum ".tool-versions" }}-{{ checksum "yarn.lock" }}'
|
|
endpoint: minio:9000
|
|
exit_code: true
|
|
mount:
|
|
- .yarn
|
|
path_style: true
|
|
rebuild: true
|
|
region: us-east-1
|