Browse Source

Merge pull request #264 from seriyps/pg-12

Add PostgreSQL-12 on Ubuntu 20.04 and OTP-24 to CI
Sergey Prokhorov 3 years ago
parent
commit
e27be7f1dc
1 changed files with 13 additions and 4 deletions
  1. 13 4
      .github/workflows/ci.yml

+ 13 - 4
.github/workflows/ci.yml

@@ -10,19 +10,28 @@ on:
       - devel
 jobs:
   test:
-    runs-on: ubuntu-18.04
+    name: OTP-${{matrix.otp}}, PG-${{matrix.pg}}, PostGIS-${{matrix.postgis}}, OS-${{matrix.os}}
+    runs-on: ${{matrix.os}}
     strategy:
       fail-fast: false
       matrix:
+        os:
+          - "ubuntu-20.04"
         pg:
-          - 10
+          - 12
+        postgis:
+          - 3
         otp:
           - "24.0"
           - "23.3"
           - "22.3"
           - "21.3"
           - "20.3"
-          - "19.3"
+        include:
+          - otp: "19.3"
+            os: "ubuntu-18.04"
+            pg: 10
+            postgis: "2.4"
     # env:
     #   PATH: ".:/usr/lib/postgresql/12/bin:$PATH"
     env:
@@ -35,7 +44,7 @@ jobs:
           otp-version: ${{matrix.otp}}
 
       - name: Setup postgresql server with postgis
-        run: sudo apt install postgresql-${{matrix.pg}} postgresql-contrib-${{matrix.pg}} postgresql-${{matrix.pg}}-postgis-2.4 postgresql-${{matrix.pg}}-postgis-2.4-scripts
+        run: sudo apt install postgresql-${{matrix.pg}} postgresql-contrib-${{matrix.pg}} postgresql-${{matrix.pg}}-postgis-${{matrix.postgis}} postgresql-${{matrix.pg}}-postgis-${{matrix.postgis}}-scripts
 
       - name: elvis
         run: make elvis