-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (46 loc) · 1.42 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: CI
on:
pull_request:
branches:
- main
env:
INSTALL_DIR: /srv/www/civi-zero
EXTENSION_NAME: sumfields-extra-activity
jobs:
format:
name: Check format
uses: reflexive-communications/rc-base/.github/workflows/reuse-format.yml@main
tests:
name: Unit tests
runs-on: ubuntu-20.04
needs: format
steps:
- name: Get civi-zero
uses: actions/checkout@v3
with:
repository: reflexive-communications/civi-zero
- name: Setup environment
run: ./bin/prepare.sh
- name: Install CiviCRM
run: ./bin/install.sh ${INSTALL_DIR}
- name: Get required extension (rc-base)
uses: actions/checkout@v3
with:
repository: reflexive-communications/rc-base
path: rc-base
- name: Get required extension (net.ourpowerbase.sumfields)
uses: actions/checkout@v3
with:
repository: progressivetech/net.ourpowerbase.sumfields
path: net.ourpowerbase.sumfields
- name: Self checkout
uses: actions/checkout@v3
with:
path: ${{ env.EXTENSION_NAME }}
- name: Install extensions
run: |
./bin/extension.sh ${INSTALL_DIR} rc-base
./bin/extension.sh ${INSTALL_DIR} net.ourpowerbase.sumfields
./bin/extension.sh ${INSTALL_DIR} ${EXTENSION_NAME}
- name: Run unit tests
run: ./bin/tests.sh ${INSTALL_DIR} ${EXTENSION_NAME}