Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bestpractical/rt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Brandt <jbrandt@bestpractical.com>2022-08-05 22:43:59 +0300
committerJim Brandt <jbrandt@bestpractical.com>2022-08-05 22:43:59 +0300
commita1f8abad86c5ad49d85be70075d4138d35e39ff7 (patch)
treef1eac94ba7a0823c82cd14553dc713cd45700225
parentdd6ad798beb7ce16965e59ebc8343e5269fa83e2 (diff)
parent4561ec7ede2211a3d5f39b0be389f62ff0f2216c (diff)
Merge branch '4.4/github-actions-updates' into 4.4-trunk
-rw-r--r--.github/workflows/github-action.yml33
1 files changed, 24 insertions, 9 deletions
diff --git a/.github/workflows/github-action.yml b/.github/workflows/github-action.yml
index af95b96f39..2da2cc428a 100644
--- a/.github/workflows/github-action.yml
+++ b/.github/workflows/github-action.yml
@@ -15,6 +15,12 @@ jobs:
echo "RT_GA_START_TIME=$(date +%s)" >> $GITHUB_ENV
- name: Check out RT
uses: actions/checkout@v2
+ - name: Cache .prove state
+ id: cache-prove-state
+ uses: actions/cache@v3
+ with:
+ path: .prove
+ key: ${{ runner.os }}-sqlite
- name: Build RT
shell: bash
run: |
@@ -23,9 +29,8 @@ jobs:
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 rt bash -c "cd /rt && prove -rlj6 t/*"
+ run: docker exec rt bash -c "cd /rt && RT_TEST_PARALLEL_NUM=5 make test-parallel"
- name: Get run time
- if: always()
shell: bash
run: |
export RT_GA_END_TIME=$(date +%s)
@@ -37,7 +42,7 @@ jobs:
export RT_GA_TEST_TIME=$(date -u -d @"$RT_GA_TEST_TIME" +"%T")
echo "RT_GA_TEST_TIME=$RT_GA_TEST_TIME" >> $GITHUB_ENV
- name: Post results to Slack
- if: always()
+ if: ${{ github.repository_owner == 'bestpractical' }}
uses: edge/simple-slack-notify@v1.1.1
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFICATIONS }}
@@ -60,6 +65,12 @@ jobs:
echo "RT_GA_START_TIME=$(date +%s)" >> $GITHUB_ENV
- name: Checkout RT
uses: actions/checkout@v2
+ - name: Cache .prove state
+ id: cache-prove-state
+ uses: actions/cache@v3
+ with:
+ path: .prove
+ key: ${{ runner.os }}-mariadb
- name: Build RT
shell: bash
run: |
@@ -70,9 +81,8 @@ jobs:
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
shell: bash
- run: docker exec rt bash -c "cd /rt && prove -rlj6 t/*"
+ run: docker exec rt bash -c "cd /rt && RT_TEST_PARALLEL_NUM=5 make test-parallel"
- name: Get run time
- if: always()
shell: bash
run: |
export RT_GA_END_TIME=$(date +%s)
@@ -84,7 +94,7 @@ jobs:
export RT_GA_TEST_TIME=$(date -u -d @"$RT_GA_TEST_TIME" +"%T")
echo "RT_GA_TEST_TIME=$RT_GA_TEST_TIME" >> $GITHUB_ENV
- name: Post results to Slack
- if: always()
+ if: ${{ github.repository_owner == 'bestpractical' }}
uses: edge/simple-slack-notify@v1.1.1
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFICATIONS }}
@@ -107,6 +117,12 @@ jobs:
echo "RT_GA_START_TIME=$(date +%s)" >> $GITHUB_ENV
- name: Checkout RT
uses: actions/checkout@v2
+ - name: Cache .prove state
+ id: cache-prove-state
+ uses: actions/cache@v3
+ with:
+ path: .prove
+ key: ${{ runner.os }}-pg-fcgid
- name: Build RT
shell: bash
run: |
@@ -118,9 +134,8 @@ jobs:
docker exec -e USER=rt-user -u rt-user rt bash -c "cd /rt && ./configure.ac --with-db-type=Pg --with-my-user-group --enable-layout=inplace --with-web-handler=fcgid --enable-developer --enable-externalauth --enable-gpg --enable-smime && mkdir -p /rt/var && make testdeps && chmod a+rX /rt/sbin/*"
- name: Run RT tests
shell: bash
- run: docker exec -e RT_DBA_USER=postgres -e RT_TEST_WEB_HANDLER=apache+fcgid -e HTTPD_ROOT=/etc/apache2 -e RT_TEST_APACHE=/usr/sbin/apache2 -e RT_TEST_APACHE_MODULES=/usr/lib/apache2/modules -u rt-user rt bash -c "cd /rt && prove -rlj6 t/*"
+ run: docker exec -e RT_DBA_USER=postgres -e RT_TEST_WEB_HANDLER=apache+fcgid -e HTTPD_ROOT=/etc/apache2 -e RT_TEST_APACHE=/usr/sbin/apache2 -e RT_TEST_APACHE_MODULES=/usr/lib/apache2/modules -u rt-user rt bash -c "cd /rt && RT_TEST_PARALLEL_NUM=5 make test-parallel"
- name: Get run time
- if: always()
shell: bash
run: |
export RT_GA_END_TIME=$(date +%s)
@@ -132,7 +147,7 @@ jobs:
export RT_GA_TEST_TIME=$(date -u -d @"$RT_GA_TEST_TIME" +"%T")
echo "RT_GA_TEST_TIME=$RT_GA_TEST_TIME" >> $GITHUB_ENV
- name: Post results to Slack
- if: always()
+ if: ${{ github.repository_owner == 'bestpractical' }}
uses: edge/simple-slack-notify@v1.1.1
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFICATIONS }}