[Rt-commit] rt branch, 4.4/github-actions-testing2, created. rt-4.4.4-457-g76e5ff438d
Jim Brandt
jbrandt at bestpractical.com
Mon May 24 16:50:54 EDT 2021
The branch, 4.4/github-actions-testing2 has been created
at 76e5ff438d81f877635ae1608ec698aa39ae7377 (commit)
- Log -----------------------------------------------------------------
commit cba74f8dc1d26561bfbb82359e4ad2d4bc1ce72c
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Mon May 24 16:42:09 2021 -0400
Pause travis testing while working on github actions
diff --git a/.travis.yml b/.travis.yml.pause
similarity index 100%
rename from .travis.yml
rename to .travis.yml.pause
commit 76e5ff438d81f877635ae1608ec698aa39ae7377
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Mon May 24 16:49:19 2021 -0400
Add github actions config for rt-server tests with SQLite
diff --git a/.github/workflows/github-action.yml b/.github/workflows/github-action.yml
new file mode 100644
index 0000000000..ed12efa84b
--- /dev/null
+++ b/.github/workflows/github-action.yml
@@ -0,0 +1,39 @@
+#language: bash
+#services: docker
+
+on: push
+
+jobs:
+ rt_test_sqlite:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check out RT
+ uses: actions/checkout at v2
+ - name: Build RT
+ env:
+ RT_TEST_PARALLEL: 1
+ shell: bash
+ run: |
+ docker build -t rt-base .
+ docker run -d -v $GITHUB_WORKSPACE:/rt --name rt rt-base
+ docker ps -a
+ docker exec rt bash -c "cd /rt && ./configure.ac --with-db-type=SQLite --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
+ shell: bash
+ run: docker exec -e RT_TEST_PARALLEL=1 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_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 }]
-----------------------------------------------------------------------
More information about the rt-commit
mailing list