[Rt-commit] rt branch, 4.4/github-actions-testing2, updated. rt-4.4.4-459-gd09c117836

Jim Brandt jbrandt at bestpractical.com
Tue May 25 08:29:52 EDT 2021


The branch, 4.4/github-actions-testing2 has been updated
       via  d09c1178362876ee7b810ed9a63e645ec2a26472 (commit)
      from  b9a3994b5fa9027bc5f8cd1771d80e6831c37f50 (commit)

Summary of changes:
 .github/workflows/github-action.yml | 42 +++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

- Log -----------------------------------------------------------------
commit d09c1178362876ee7b810ed9a63e645ec2a26472
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Tue May 25 08:29:49 2021 -0400

    Add MariaDB tests to github actions

diff --git a/.github/workflows/github-action.yml b/.github/workflows/github-action.yml
index ed12efa84b..e115f33f0e 100644
--- a/.github/workflows/github-action.yml
+++ b/.github/workflows/github-action.yml
@@ -37,3 +37,45 @@ jobs:
             { "title": "Branch", "value": "${env.GITHUB_REF}", "short": true },
             { "title": "Test", "value": "rt_test_sqlite", "short": true },
             { "title": "URL", "value": "${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}?check_suite_focus=true", "short": true }]
+  rt_test_mariadb:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout RT
+        uses: actions/checkout at v2
+      - name: Build RT
+        env:
+          RT_TEST_PARALLEL: 1
+          RT_DBA_USER: root
+          RT_DBA_PASSWORD: password
+          DB_VERSION_TAG: 10.3
+        shell: bash
+        run: |
+          docker run --name mariadb -e MYSQL_ROOT_PASSWORD=password -d mariadb:$DB_VERSION_TAG
+          docker build -t rt-base .
+          docker run -d -v $GITHUB_WORKSPACE:/rt --name rt --link mariadb:db rt-base
+          docker ps -a
+          docker exec rt bash -c "cd /rt && ./configure.ac --with-db-type=mysql --with-my-user-group --enable-layout=inplace --enable-developer --enable-externalauth --enable-gpg --enable-smime && mkdir -p /rt/var && make testdeps"
+      - name: Run RT tests
+        env:
+          RT_TEST_PARALLEL: 1
+          RT_DBA_USER: root
+          RT_DBA_PASSWORD: password
+          DB_VERSION_TAG: 10.3
+        shell: bash
+        run: docker exec -e RT_TEST_PARALLEL=1 -e RT_DBA_USER=root -e RT_DBA_PASSWORD=password rt bash -c "cd /rt && prove -lj6 t/*"
+      - name: Post results to Slack
+        if: always()
+        uses: edge/simple-slack-notify at v1.1.1
+        env:
+          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFICATIONS }}
+        with:
+          channel: '#github'
+          status: ${{ job.status }}
+          success_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) tests completed successfully'
+          failure_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) tests failed'
+          cancelled_text: '${env.GITHUB_WORKFLOW} (${env.GITHUB_RUN_NUMBER}) tests cancelled'
+          fields: |
+            [{ "title": "Repository", "value": "${env.GITHUB_REPOSITORY}", "short": true },
+            { "title": "Branch", "value": "${env.GITHUB_REF}", "short": true },
+            { "title": "Test", "value": "rt_test_mariadb", "short": true },
+            { "title": "URL", "value": "${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}?check_suite_focus=true", "short": true }]

-----------------------------------------------------------------------


More information about the rt-commit mailing list