From e332eef0c3ac9464128969a265e328cb62868f62 Mon Sep 17 00:00:00 2001
From: "Lucian I. Last"
Date: Thu, 29 Feb 2024 12:20:13 +0100
Subject: [PATCH] Update to node20.*, go1.22, actions v4
---
.github/workflows/deploy-acceptance-api.yml | 2 +-
.github/workflows/deploy-acceptance-app.yml | 2 +-
.github/workflows/deploy-acceptance-fe.yml | 2 +-
.github/workflows/deploy-production-app.yml | 6 +++---
.github/workflows/deploy-production.yml | 13 ++++++-------
.github/workflows/lint-api.yml | 6 +++---
.github/workflows/lint-app.yml | 6 +++---
.github/workflows/lint-fe.yml | 6 +++---
docker/dev/docker-compose.yml | 2 +-
server/go.mod | 2 +-
10 files changed, 23 insertions(+), 24 deletions(-)
diff --git a/.github/workflows/deploy-acceptance-api.yml b/.github/workflows/deploy-acceptance-api.yml
index 7462ec2b1..05c85a7b7 100644
--- a/.github/workflows/deploy-acceptance-api.yml
+++ b/.github/workflows/deploy-acceptance-api.yml
@@ -16,7 +16,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
- go-version: "1.20"
+ go-version: "1.22"
check-latest: true
cache: true
cache-dependency-path: server/go.sum
diff --git a/.github/workflows/deploy-acceptance-app.yml b/.github/workflows/deploy-acceptance-app.yml
index ba162708c..0d6c375c8 100644
--- a/.github/workflows/deploy-acceptance-app.yml
+++ b/.github/workflows/deploy-acceptance-app.yml
@@ -16,7 +16,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
- node-version: 20.5
+ node-version: 20
cache: npm
cache-dependency-path: app/package-lock.json
- name: Install Dependencies app
diff --git a/.github/workflows/deploy-acceptance-fe.yml b/.github/workflows/deploy-acceptance-fe.yml
index e296a4db1..7d6cde829 100644
--- a/.github/workflows/deploy-acceptance-fe.yml
+++ b/.github/workflows/deploy-acceptance-fe.yml
@@ -16,7 +16,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
- node-version: 20.5
+ node-version: 20
cache: npm
cache-dependency-path: frontend/package-lock.json
- name: Install Dependencies Frontend
diff --git a/.github/workflows/deploy-production-app.yml b/.github/workflows/deploy-production-app.yml
index f91842f4c..0ab2e72a7 100644
--- a/.github/workflows/deploy-production-app.yml
+++ b/.github/workflows/deploy-production-app.yml
@@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
- name: Setup Node
- uses: actions/setup-node@v3
+ uses: actions/setup-node@v4
with:
- node-version: 20.5
+ node-version: 20
cache: npm
cache-dependency-path: app/package-lock.json
- name: Install Dependencies App
diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml
index 3f950e274..664f0e560 100644
--- a/.github/workflows/deploy-production.yml
+++ b/.github/workflows/deploy-production.yml
@@ -9,11 +9,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
- name: Setup Go
- uses: actions/setup-go@v3
+ uses: actions/setup-go@v4
with:
- go-version: "1.20"
+ go-version: "1.22"
check-latest: true
cache: true
cache-dependency-path: server/go.sum
@@ -42,12 +42,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
- name: Setup Node
- uses: actions/setup-node@v3
+ uses: actions/setup-node@v4
with:
- node-version: 20.5
- # https://github.com/nodejs/node/issues/49497
+ node-version: 20
cache: "npm"
cache-dependency-path: frontend/package-lock.json
- name: Install Dependencies Frontend
diff --git a/.github/workflows/lint-api.yml b/.github/workflows/lint-api.yml
index f2ea6fff8..e7dfbc977 100644
--- a/.github/workflows/lint-api.yml
+++ b/.github/workflows/lint-api.yml
@@ -15,11 +15,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
- name: Setup Go
- uses: actions/setup-go@v3
+ uses: actions/setup-go@v4
with:
- go-version: "1.20"
+ go-version: "1.22"
check-latest: true
cache: true
cache-dependency-path: server/go.sum
diff --git a/.github/workflows/lint-app.yml b/.github/workflows/lint-app.yml
index de60dfffc..472b65526 100644
--- a/.github/workflows/lint-app.yml
+++ b/.github/workflows/lint-app.yml
@@ -15,11 +15,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
- name: Setup Node
- uses: actions/setup-node@v3
+ uses: actions/setup-node@v4
with:
- node-version: 20.5
+ node-version: 20
cache: npm
cache-dependency-path: app/package-lock.json
- name: Install Dependencies App
diff --git a/.github/workflows/lint-fe.yml b/.github/workflows/lint-fe.yml
index f447852c3..34e8b0d98 100644
--- a/.github/workflows/lint-fe.yml
+++ b/.github/workflows/lint-fe.yml
@@ -15,11 +15,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
- name: Setup Node
- uses: actions/setup-node@v3
+ uses: actions/setup-node@v4
with:
- node-version: 20.5
+ node-version: 20
cache: npm
cache-dependency-path: frontend/package-lock.json
- name: Install Dependencies Frontend
diff --git a/docker/dev/docker-compose.yml b/docker/dev/docker-compose.yml
index 1edef0cf5..b1b2fbc31 100644
--- a/docker/dev/docker-compose.yml
+++ b/docker/dev/docker-compose.yml
@@ -22,7 +22,7 @@ services:
stdin_open: true
tty: true
server:
- image: golang:1.20-alpine
+ image: golang:1.22-alpine
ports:
- 8084:8084
volumes:
diff --git a/server/go.mod b/server/go.mod
index 9386b6127..4d6c20a4b 100644
--- a/server/go.mod
+++ b/server/go.mod
@@ -1,6 +1,6 @@
module github.com/the-clothing-loop/website/server
-go 1.20
+go 1.22
require (
github.com/0xch4z/selectr v0.2.0