Skip to content

Commit 03d85c5

Browse files
authored
Merge pull request #289 from TaloDev/develop
Release 0.32.0
2 parents 2cd589f + 5b88d57 commit 03d85c5

File tree

14 files changed

+245
-126
lines changed

14 files changed

+245
-126
lines changed

.github/workflows/create-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: npm run build
2828

2929
- name: Create GitHub release
30-
uses: softprops/action-gh-release@v1
30+
uses: softprops/action-gh-release@v2
3131
if: "!contains(github.event.head_commit.message, '--no-release')"
3232
with:
3333
generate_release_notes: true

.github/workflows/docker.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ jobs:
1010
- run: echo "TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
1111

1212
- name: Set up QEMU
13-
uses: docker/setup-qemu-action@v2
13+
uses: docker/setup-qemu-action@v3
1414

1515
- name: Set up Docker Buildx
16-
uses: docker/setup-buildx-action@v2
16+
uses: docker/setup-buildx-action@v3
1717

1818
- name: Login to DockerHub
19-
uses: docker/login-action@v2
19+
uses: docker/login-action@v3
2020
with:
2121
registry: ghcr.io
2222
username: ${{ github.actor }}
2323
password: ${{ secrets.GITHUB_TOKEN }}
2424

2525
- name: Build and push
2626
id: docker_build
27-
uses: docker/build-push-action@v4
27+
uses: docker/build-push-action@v5
2828
with:
2929
push: true
3030
tags: |

.husky/install.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Skip Husky install in production and CI
2+
if (process.env.NODE_ENV === 'production' || process.env.CI === 'true') {
3+
process.exit(0)
4+
}
5+
const husky = (await import('husky')).default
6+
console.log(husky())

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ COPY package-lock.json .
66
EXPOSE 80
77

88
FROM base AS dev
9+
COPY .husky .husky
910
RUN npm ci
1011
CMD [ "npm", "run", "watch" ]
1112

docker-compose.ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ version: '3.9'
22

33
services:
44
test-db:
5-
image: mysql:8
6-
command: --default-authentication-plugin=mysql_native_password --sql_mode=
5+
image: mysql:8.4
6+
command: --mysql-native-password=ON
77
environment:
88
- MYSQL_DATABASE=${DB_NAME}
99
- MYSQL_ROOT_PASSWORD=${DB_PASS}

docker-compose.test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: '3.9'
33
services:
44
test-db:
55
image: mysql:8
6-
command: --default-authentication-plugin=mysql_native_password --sql_mode=
6+
command: --mysql-native-password=ON
77
environment:
88
- MYSQL_DATABASE=${DB_NAME}
99
- MYSQL_ROOT_PASSWORD=${DB_PASS}

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ services:
1010

1111
db:
1212
image: mysql:8
13-
command: --default-authentication-plugin=mysql_native_password --sql_mode=
13+
command: --mysql-native-password=ON
1414
environment:
1515
- MYSQL_DATABASE=${DB_NAME}
1616
- MYSQL_ROOT_PASSWORD=${DB_PASS}

package-lock.json

Lines changed: 44 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
{
22
"name": "game-services",
3-
"version": "0.31.1",
3+
"version": "0.32.0",
44
"description": "",
55
"main": "src/index.ts",
66
"scripts": {
77
"watch": "tsnd --respawn src/index.ts",
88
"build": "npx tsc -p tsconfig.build.json",
9-
"seed": "docker-compose -f docker-compose.yml -f docker-compose.dev.yml exec backend npx ts-node tests/seed.ts",
109
"dc": "docker-compose -f docker-compose.yml -f docker-compose.dev.yml",
10+
"seed": "npm run dc -- exec backend npx ts-node tests/seed.ts",
1111
"test": "./tests/run-tests.sh",
12-
"up": "npm run dc up --build -d",
13-
"down": "npm run dc down",
14-
"restart": "npm run dc restart backend && npm run logs",
15-
"logs": "npm run dc logs --follow backend",
12+
"up": "npm run dc -- up --build -d",
13+
"down": "npm run dc -- down",
14+
"restart": "npm run dc -- restart backend && npm run logs",
15+
"logs": "npm run dc -- logs backend --follow",
1616
"migration:create": "DB_HOST=127.0.0.1 mikro-orm migration:create",
1717
"migration:up": "DB_HOST=127.0.0.1 mikro-orm migration:up",
1818
"service:create": "hygen service new",
19-
"prepare": "husky || true",
19+
"prepare": "node .husky/install.mjs",
2020
"lint": "eslint src/**/*.ts tests/**/*.ts"
2121
},
2222
"author": "Sleepy Studios",
2323
"license": "MIT",
2424
"devDependencies": {
25-
"@mikro-orm/cli": "^6.2.3",
25+
"@mikro-orm/cli": "^6.2.8",
2626
"@types/koa": "^2.13.5",
2727
"@types/koa-bodyparser": "^4.3.7",
2828
"@types/koa-logger": "^3.1.2",
@@ -33,7 +33,6 @@
3333
"@typescript-eslint/parser": "^5.40.1",
3434
"@vitest/coverage-v8": "^1.5.2",
3535
"axios-mock-adapter": "^1.22.0",
36-
"casual": "^1.6.2",
3736
"eslint": "^8.26.0",
3837
"hefty": "^1.1.0",
3938
"husky": "^9.0.11",
@@ -49,17 +48,18 @@
4948
"dependencies": {
5049
"@dinero.js/currencies": "^2.0.0-alpha.14",
5150
"@koa/cors": "^5.0.0",
52-
"@mikro-orm/core": "^6.2.3",
53-
"@mikro-orm/migrations": "^6.2.3",
54-
"@mikro-orm/mysql": "^6.2.3",
55-
"@mikro-orm/reflection": "^6.2.3",
51+
"@mikro-orm/core": "^6.2.8",
52+
"@mikro-orm/migrations": "^6.2.8",
53+
"@mikro-orm/mysql": "^6.2.8",
54+
"@mikro-orm/reflection": "^6.2.8",
5655
"@sendgrid/mail": "^7.6.2",
5756
"@sentry/node": "^7.47.0",
5857
"@sentry/utils": "^7.47.0",
5958
"adm-zip": "^0.5.6",
6059
"axios": "^1.6.8",
6160
"bcrypt": "^5.1.0",
6261
"bullmq": "^3.2.0",
62+
"casual": "^1.6.2",
6363
"date-fns": "^2.28.0",
6464
"dinero.js": "^2.0.0-alpha.14",
6565
"dotenv": "^16.0.0",

0 commit comments

Comments
 (0)