From fe6f11e4e59d90aeb24a22732d4843bb79981f71 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Sat, 13 Aug 2022 16:50:56 -0700 Subject: [PATCH] try running MySQL/SQL Server for all workflows --- .github/workflows/test-and-release.yml | 12 ++++++++++++ .github/workflows/test-and-snapshot.yml | 12 ++++++++++++ run-tests.sh | 1 + 3 files changed, 25 insertions(+) diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index adc2764..0bd6dc2 100644 --- a/.github/workflows/test-and-release.yml +++ b/.github/workflows/test-and-release.yml @@ -29,6 +29,18 @@ jobs: ~/.clojure ~/.cpcache key: ${{ runner.os }}-${{ hashFiles('**/deps.edn') }} + - name: Setup Databases + run: docker-compose up -d + env: + MYSQL_ROOT_PASSWORD: testing + - name: Create ClojureTest + run: ./run-tests.sh create + env: + MYSQL_ROOT_PASSWORD: testing + - name: Run All Tests + run: ./run-tests.sh + env: + MYSQL_ROOT_PASSWORD: testing - name: Run Tests run: clojure -T:build ci :snapshot false - name: Deploy Release diff --git a/.github/workflows/test-and-snapshot.yml b/.github/workflows/test-and-snapshot.yml index e64bbc6..15cdb58 100644 --- a/.github/workflows/test-and-snapshot.yml +++ b/.github/workflows/test-and-snapshot.yml @@ -27,6 +27,18 @@ jobs: ~/.clojure ~/.cpcache key: ${{ runner.os }}-${{ hashFiles('**/deps.edn') }} + - name: Setup Databases + run: docker-compose up -d + env: + MYSQL_ROOT_PASSWORD: testing + - name: Create ClojureTest + run: ./run-tests.sh create + env: + MYSQL_ROOT_PASSWORD: testing + - name: Run All Tests + run: ./run-tests.sh + env: + MYSQL_ROOT_PASSWORD: testing - name: Run Tests run: clojure -T:build ci :snapshot true - name: Deploy Snapshot diff --git a/run-tests.sh b/run-tests.sh index 9c2851f..b9e4892 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -26,3 +26,4 @@ then NEXT_JDBC_TEST_MSSQL=yes MSSQL_SA_PASSWORD=Str0ngP4ssw0rd \ NEXT_JDBC_TEST_MYSQL=yes clojure -X:test fi +exit $?