Upgrade dependencies (#619)

This commit is contained in:
Sung 2023-02-05 13:10:45 +11:00 committed by GitHub
commit 4a780574eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 20 additions and 22 deletions

View file

@ -1,9 +1,11 @@
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
branches:
- master
pull_request:
branches:
- master
jobs:
build:

View file

@ -39,13 +39,7 @@ The server consists of the frontend web application and a web server.
### Test
```bash
# Run tests for the frontend web application
make test-web
# Run in watch mode
WATCH=true make test-web
# Run tests for API
# Run tests for app
make test-api
# Run in watch mode

View file

@ -2,7 +2,7 @@ version: "3"
services:
postgres:
image: postgres:11-alpine
image: postgres:14-alpine
environment:
POSTGRES_USER: dnote
POSTGRES_PASSWORD: dnote

View file

@ -6,12 +6,12 @@ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
sudo apt-get update
sudo apt-get install -y postgresql-11
sudo apt-get install -y postgresql-14
# set up database
sudo -u postgres createdb dnote
# allow connection from host and allow to connect without password
sudo sed -i "/port*/a listen_addresses = '*'" /etc/postgresql/11/main/postgresql.conf
sudo sed -i 's/host.*all.*.all.*md5/# &/' /etc/postgresql/11/main/pg_hba.conf
sudo sed -i "$ a host all all all trust" /etc/postgresql/11/main/pg_hba.conf
sudo sed -i "/port*/a listen_addresses = '*'" /etc/postgresql/14/main/postgresql.conf
sudo sed -i 's/host.*all.*.all.*md5/# &/' /etc/postgresql/14/main/pg_hba.conf
sudo sed -i "$ a host all all all trust" /etc/postgresql/14/main/pg_hba.conf
sudo service postgresql restart

View file

@ -4,7 +4,7 @@ DBHost=localhost
DBPort=5432
DBName=dnote
DBUser=postgres
DBPassword=
DBPassword=postgres
DBSkipSSL=true
SmtpUsername=mock-SmtpUsername

View file

@ -36,7 +36,7 @@ if [[ $1 == v* ]]; then
exit 1
fi
goVersion=go-1.17.x
goVersion=go-1.20.x
get_binary_name() {
platform=$1

View file

@ -10,8 +10,10 @@ echo "cd /go/src/github.com/dnote/dnote" >> /home/vagrant/.bash_profile
# set up database
sudo -u postgres createdb dnote
sudo -u postgres createdb dnote_test
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
# allow connection from host and allow to connect without password
sudo sed -i "/port*/a listen_addresses = '*'" /etc/postgresql/11/main/postgresql.conf
sudo sed -i 's/host.*all.*.all.*md5/# &/' /etc/postgresql/11/main/pg_hba.conf
sudo sed -i "$ a host all all all trust" /etc/postgresql/11/main/pg_hba.conf
sudo sed -i "/port*/a listen_addresses = '*'" /etc/postgresql/14/main/postgresql.conf
sudo sed -i 's/host.*all.*.all.*md5/# &/' /etc/postgresql/14/main/pg_hba.conf
sudo sed -i "$ a host all all all trust" /etc/postgresql/14/main/pg_hba.conf
sudo service postgresql restart

View file

@ -2,7 +2,7 @@
# shellcheck disable=SC1091
set -eux
VERSION=1.17.9
VERSION=1.20
OS=linux
ARCH=amd64

View file

@ -6,4 +6,4 @@ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
sudo apt-get update
sudo apt-get install -y postgresql-11
sudo apt-get install -y postgresql-14