Skip to content

Commit 85d9b5b

Browse files
committed
Update node version to 18
1 parent 488cf9e commit 85d9b5b

File tree

5 files changed

+181
-168
lines changed

5 files changed

+181
-168
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
name: Lint
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v1
19+
- uses: actions/checkout@v3
2020
- uses: actions/setup-node@v2
2121
with:
22-
node-version: 16
22+
node-version: 18
2323
cache: 'yarn'
2424
- name: Install dependencies
2525
run: yarn install
@@ -41,10 +41,10 @@ jobs:
4141
MYSQL_ROOT_PASSWORD: p4ssw0rd
4242
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
4343
steps:
44-
- uses: actions/checkout@v1
44+
- uses: actions/checkout@v3
4545
- uses: actions/setup-node@v2
4646
with:
47-
node-version: 16
47+
node-version: 18
4848
cache: 'yarn'
4949
- name: Install dependencies
5050
run: yarn install
@@ -76,7 +76,7 @@ jobs:
7676
runs-on: ubuntu-latest
7777
needs: test
7878
steps:
79-
- uses: actions/checkout@v2
79+
- uses: actions/checkout@v3
8080
with:
8181
fetch-depth: 1
8282
- name: Set variables

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM node:16-alpine AS build
1+
FROM node:18-alpine AS build
22

33
WORKDIR /home/node
44

55
COPY . .
66
RUN yarn install --frozen-lockfile && yarn build
77

8-
FROM node:16-alpine
8+
FROM node:18-alpine
99

1010
RUN addgroup --gid 3000 --system juffgroup \
1111
&& adduser --uid 2000 --system --ingroup juffgroup juffuser

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ services:
1616
- 'mysql_data:/mysql/data'
1717

1818
application:
19-
image: node:16-alpine
19+
image: node:18-alpine
2020
working_dir: /home/node
2121
command: sh -c "yarn install --frozen-lockfile && yarn start"
2222
depends_on:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"devDependencies": {
2323
"@types/express": "^4.17.3",
2424
"@types/jest": "^27.0.1",
25-
"@types/node": "^16.3.1",
25+
"@types/node": "^18.11.9",
2626
"@typescript-eslint/eslint-plugin": "^5.9.0",
2727
"@typescript-eslint/parser": "^5.9.0",
2828
"eslint": "^8.6.0",

0 commit comments

Comments
 (0)