Skip to content

Commit e43d864

Browse files
committed
CI: Bump ubuntu-24.04, and Erlang 25+ (#4281)
Update postgresql preparation: - ubuntu-20.04 included PostgreSQL 14.13 - ubuntu-24.04 includes PostgreSQL 16.4 and in the meantime, PostgreSQL 15.0 revoked "the CREATE permission from all users except a database owner from the public (or default) schema." See https://www.postgresql.org/about/news/postgresql-15-released-2526/
1 parent 4d3681a commit e43d864

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

.github/workflows/ci.yml

+6-14
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
otp: ['20.0', '25', '26', '27']
29-
runs-on: ubuntu-20.04
28+
otp: ['25', '26', '27']
29+
runs-on: ubuntu-24.04
3030
services:
3131
redis:
3232
image: public.ecr.aws/docker/library/redis
@@ -50,13 +50,6 @@ jobs:
5050
with:
5151
otp-version: ${{ matrix.otp }}
5252

53-
- name: Get a compatible Rebar3
54-
if: matrix.otp < 24
55-
run: |
56-
rm rebar3
57-
wget https://github.com/processone/ejabberd/raw/21.12/rebar3
58-
chmod +x rebar3
59-
6053
- name: Install MS SQL Server
6154
run: |
6255
docker run -d -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=ejabberd_Test1" \
@@ -83,6 +76,8 @@ jobs:
8376
WITH PASSWORD 'ejabberd_test';"
8477
sudo -u postgres psql -c "GRANT ALL PRIVILEGES
8578
ON DATABASE ejabberd_test TO ejabberd_test;"
79+
sudo -u postgres psql -c "GRANT ALL ON SCHEMA public TO ejabberd_test;"
80+
sudo -u postgres psql -c "ALTER DATABASE ejabberd_test OWNER TO ejabberd_test;"
8681
sudo -u postgres psql ejabberd_test -c "GRANT ALL PRIVILEGES ON ALL
8782
TABLES IN SCHEMA public
8883
TO ejabberd_test;"
@@ -107,10 +102,6 @@ jobs:
107102
~/.cache/rebar3/
108103
key: ${{matrix.otp}}-${{hashFiles('rebar.config')}}
109104

110-
- name: Get old eredis for old Erlang
111-
if: matrix.otp < 21
112-
run: ./rebar3 unlock eredis
113-
114105
- name: Compile
115106
run: |
116107
./autogen.sh
@@ -129,7 +120,6 @@ jobs:
129120
- run: make dialyzer
130121
- run: make test-eunit
131122
- run: make elvis
132-
if: matrix.otp >= 23
133123

134124
- name: Check Production Release
135125
run: |
@@ -267,6 +257,8 @@ jobs:
267257
sudo -u postgres psql -c "CREATE DATABASE ejabberd_test;"
268258
sudo -u postgres psql -c "GRANT ALL PRIVILEGES
269259
ON DATABASE ejabberd_test TO ejabberd_test;"
260+
sudo -u postgres psql -c "GRANT ALL ON SCHEMA public TO ejabberd_test;"
261+
sudo -u postgres psql -c "ALTER DATABASE ejabberd_test OWNER TO ejabberd_test;"
270262
sudo -u postgres psql ejabberd_test -c "GRANT ALL PRIVILEGES ON ALL
271263
TABLES IN SCHEMA public
272264
TO ejabberd_test;"

0 commit comments

Comments
 (0)