Skip to content

Commit

Permalink
Merge pull request #3 from rafaeldelboni/master
Browse files Browse the repository at this point in the history
Upgrade to zonkyio/embedded-postgres v2.0.1
  • Loading branch information
Bigsy authored Sep 20, 2022
2 parents 956c775 + 9921783 commit 00f01f9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Tests

# Controls when the action will run.
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
Expand All @@ -23,18 +23,18 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Prepare java
uses: actions/setup-java@v2.5.0
uses: actions/setup-java@v3.5.0
with:
distribution: 'adopt'
java-version: '11'

- name: Install clojure tools-deps
uses: DeLaGuardo/setup-clojure@master
with:
lein: 2.9.8
lein: 2.9.10

- name: Execute clojure code
run: lein test
10 changes: 5 additions & 5 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
(defproject org.clojars.bigsy/pg-embedded-clj "0.2.0"
(defproject org.clojars.bigsy/pg-embedded-clj "1.0.0"
:description "Embedded postgres for clojure"
:url "https://github.com/Bigsy/pg-embedded-clj"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.10.3"]
:dependencies [[org.clojure/clojure "1.11.1"]
[integrant "0.8.0"]
[io.zonky.test/embedded-postgres "2.0.1"]
[org.clojure/tools.logging "1.2.4"]
[org.clojure/tools.namespace "1.2.0"]
[io.zonky.test/embedded-postgres "1.3.1"]
[org.slf4j/slf4j-jdk14 "1.7.35"]]
[org.clojure/tools.namespace "1.3.0"]
[org.slf4j/slf4j-jdk14 "2.0.1"]]

:profiles {:dev {:dependencies [[org.clojure/java.jdbc "0.7.12"]]}})
2 changes: 1 addition & 1 deletion test/pg_embedded_clj/custom_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
:user "postgres"})
(deftest can-wrap-around
(testing "using custom port"
(is (= {:version "PostgreSQL 10.18 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23), 64-bit"}
(is (= {:version "PostgreSQL 14.5 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 4.8.4-2ubuntu1~14.04.4) 4.8.4, 64-bit"}
(first (jdbc/query db-spec ["select version()"])))))

(testing "using custom log redirect"
Expand Down
2 changes: 1 addition & 1 deletion test/pg_embedded_clj/default_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
:user "postgres"})
(deftest can-wrap-around
(testing "using defaults"
(is (= {:version "PostgreSQL 10.18 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23), 64-bit"}
(is (= {:version "PostgreSQL 14.5 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 4.8.4-2ubuntu1~14.04.4) 4.8.4, 64-bit"}
(first (jdbc/query db-spec ["select version()"]))))))

0 comments on commit 00f01f9

Please sign in to comment.