Skip to content

Commit

Permalink
Update to NestJS 10
Browse files Browse the repository at this point in the history
  • Loading branch information
kakoma committed Oct 9, 2023
1 parent 3ebaebb commit 4b7e87c
Show file tree
Hide file tree
Showing 45 changed files with 11,407 additions and 12,044 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build and deploy Project Zoe server

on:
push:
branches: [ master, develop ]
branches: [ master, develop, feat/update-nodev18 ]

jobs:
build-and-deploy:
Expand All @@ -12,12 +12,11 @@ jobs:
- name: Checkout the repository
uses: actions/checkout@v2

# For some strange reason, npm 8.x fails so sticking to 6.14.5 for now
- name: Setup Node.js
uses: volta-cli/action@v1
with:
node-version: '16.x'
npm-version: '6.14.5'
node-version: '18.x'
npm-version: '8.x'

- name: Cache dependencies
uses: actions/cache@v2
Expand Down
11 changes: 8 additions & 3 deletions .husky/_/husky.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/sh
#!/usr/bin/env sh
if [ -z "$husky_skip_init" ]; then
debug () {
if [ "$HUSKY_DEBUG" = "1" ]; then
echo "husky (debug) - $1"
fi
}

readonly hook_name="$(basename "$0")"
readonly hook_name="$(basename -- "$0")"
debug "starting $hook_name..."

if [ "$HUSKY" = "0" ]; then
Expand All @@ -19,13 +19,18 @@ if [ -z "$husky_skip_init" ]; then
. ~/.huskyrc
fi

export readonly husky_skip_init=1
readonly husky_skip_init=1
export husky_skip_init
sh -e "$0" "$@"
exitCode="$?"

if [ $exitCode != 0 ]; then
echo "husky - $hook_name hook exited with code $exitCode (error)"
fi

if [ $exitCode = 127 ]; then
echo "husky - command not found in PATH=$PATH"
fi

exit $exitCode
fi
Loading

0 comments on commit 4b7e87c

Please sign in to comment.