Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update to node 20 (VO-484) #37

Merged
merged 1 commit into from
May 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 7 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,13 @@ env:
- secure: "U6H8M/733c/b0z9q6wMdX7XdkS4PTrqKg1byN7tkowsmbJ+SNv8MI4K/l8fPzJuy5gl0nBe02X69+y3j6Cm5NajzarDt0E7QtlfdR6YfRowCjt2n3sYLak9F2cPdDw1H29j2U1DG/G275KtRV3ble44LMbHOa8pQB1az+iqcDGlLATjT2AH5vmDC3F1EYJzOwHuNNQGPl+bgIJvfdF1TAv25QdEP2tiEmhBZnNLkonMnv8xdoUxjXkjRjlpYfzrOeTJPISbs9I/PrBx3NnTukrGpkqQKZsMlA05qovVZ451/fpL2X7VIR9WxRfOnjebwiTlArRNkb3kPbCEOLBKAfhWVCyZBFTh3INMIdDPt4ByAitEmC3dPrFDlgzpHb2qj5QqY+6FywbvkZs9F2tq6zRyaC5RzHgqbiGt89pwlPnN0HF0ZARmhk102z76ndBPnkCsIGJVP9OYStu7IgJqeiswDOrObOoBiEEOmBHst/D9sLogzrj219ESPFFVrJ/UZYs3iKmGgiPk72o2XxyqU/O/R7gaeXs/rmjAIfEZPFmLIOjKzrpIQSYYKnFYhwW45wMjSP68wvF/g6Yc/M8AhvyFh4pHltTG289m51kCA+OlKVVJUn2KW2GBrcwty1RFfzIVjljecPkVpWIC1EZnTmuDO5SalVLTPz91TkapVS4A="
# GITHUB_TOKEN for yarn deploy script
- secure: "ehPYnxOj7SegMePl8XXxQBxoBSh+UWKQQitwVNEy9dnKAsYgNEcb0XfG1uLy1v596NcyifVjxEDs93aDF4kZT/0AWH67re7XZpqCyy+wJt7oMJ6YKPoCLR9Zs1VG2jD/OTmkT4zT7VzAqUGkhyz6k+tYwFazeWXPqAfbyA7Q2fa7etzzi0A/oruKKD3Gof2AMGiYOKhTmCwdBbcFEsBNkgc+nzEh/lH9iEL/b86EXS5VKHpDAEsJI0+Z2gY8vX8MBRk5sHlsKaf9F1KTUGZHCEXZ9nrMe3+0nGXSzNydK2Tf3He2zLqXSwZjp74u1ZW5EzF5zzQPp5irnip6pk3dZkaAO56mHoY24cmcX+BvxzJSeLapnnuRYWQKyexOp0sFFUsMBvoURH8prxXS17jxu4whCMAUH4XSf2Yvf0P1GhIV9JIZzdxxJkIgIBmcAcjYvDqBHqfBk2p44TRtBnUcE56WUDWeFLVqPbBldma80aJgdQ3/ShkDmkecsxHxMapACFR4jnFAR9kYUtP1sQbdO/MyhBf9bmHiqRiAjjHOiKLBIvHTM/BrR3kO6fv1xTx6INYyfJSwg5uhqdyGPFlNaWG5CiEJx80giP3n7hIjQ3kVpwx5Dh02bmhZ3I6GMUo/OkFM11FBnx84RgRG/tt3VVIpmQsuYjQBZ/Rzs3UBZQo="
stages:
- prebuild
- build
jobs:
include:
- name: 'Lint'
stage: 'prebuild'
script: yarn lint
- name: 'Unit tests node 16'
stage: 'prebuild'
node_js: 16
script: yarn test
- name: 'Unit tests node 20'
stage: 'prebuild'
node_js: 20
- name: 'Test'
script: yarn test
- name: 'Build app'
stage: 'build'
before_script:
- '[ "$TRAVIS_SECURE_ENV_VARS" != "false" ] && openssl aes-256-cbc -K $encrypted_497d1a9dc404_key -iv $encrypted_497d1a9dc404_iv -in id_rsa_downcloud_photos.enc -out id_rsa_downcloud_photos -d'
- '[ "$TRAVIS_SECURE_ENV_VARS" != "false" ] && eval "$(ssh-agent -s)"'
Expand All @@ -44,15 +33,17 @@ jobs:
before_deploy:
- yarn add cozy-app-publish # to be sure to have the last version before deploy
deploy:
- &deploy
provider: script
- provider: script
repo: cozy/cozy-photos
skip-cleanup: true
skip_cleanup: true
script: yarn run deploy
on:
# deploy the build on a build branch and publish to the Cozy registry
branch: master
- <<: *deploy
- provider: script
repo: cozy/cozy-photos
skip_cleanup: true
script: yarn run deploy
on:
# publish stable or beta versions using Github Releases (git tag)
tags: true
Loading