5
5
6
6
on :
7
7
push :
8
- branches : [main, next]
8
+ branches :
9
+ - main
10
+ - next
9
11
pull_request :
10
- branches : [main, next]
12
+ branches :
13
+ - main
14
+ - next
11
15
workflow_dispatch :
12
16
13
17
jobs :
14
18
test :
15
19
name : redmine:${{ matrix.redmine_version }} ruby:${{ matrix.ruby_version }} postgis:${{ matrix.db_version }}
16
20
runs-on : ubuntu-22.04
17
-
18
21
container :
19
22
image : ruby:${{ matrix.ruby_version }}-bullseye
20
23
44
47
options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
45
48
46
49
steps :
50
+ - name : Checkout repository
51
+ uses : actions/checkout@v4
52
+
53
+ - name : List repository files for debugging
54
+ run : ls -R
55
+ shell : bash
56
+
57
+ - name : Set script permissions
58
+ run : chmod +x ./scripts/*.sh
59
+ shell : bash
60
+
61
+ - name : List scripts directory for debugging
62
+ run : ls -l ./scripts
63
+ shell : bash
64
+
47
65
- name : Checkout Redmine
48
66
uses : actions/checkout@v4
49
67
with :
@@ -58,43 +76,52 @@ jobs:
58
76
59
77
- name : Setup Environment
60
78
run : ./scripts/setup_environment.sh
79
+ shell : bash
61
80
62
81
- name : Prepare Plugin
63
82
working-directory : redmine/plugins/${{ env.PLUGIN_NAME }}
64
83
run : ./scripts/prepare_plugin.sh
84
+ shell : bash
65
85
66
86
- name : Prepare Redmine source
67
87
working-directory : redmine
68
88
run : ./scripts/prepare_redmine.sh
89
+ shell : bash
69
90
70
91
- name : Adjust Gem environment
71
92
run : ./scripts/adjust_gem_env.sh
93
+ shell : bash
72
94
73
95
- name : Install Ruby dependencies
74
96
working-directory : redmine
75
97
run : ./scripts/install_ruby_dependencies.sh
98
+ shell : bash
76
99
77
100
- name : Run Redmine rake tasks
78
101
env :
79
102
RAILS_ENV : test
80
103
working-directory : redmine
81
104
run : ./scripts/run_rake_tasks.sh
105
+ shell : bash
82
106
83
107
- name : Zeitwerk check
84
108
env :
85
109
RAILS_ENV : test
86
110
working-directory : redmine
87
111
run : ./scripts/zeitwerk_check.sh
112
+ shell : bash
88
113
89
114
- name : Run tests
90
115
env :
91
116
RAILS_ENV : test
92
117
GOOGLE_CHROME_OPTS_ARGS : " headless,disable-gpu,no-sandbox,disable-dev-shm-usage"
93
118
working-directory : redmine
94
119
run : ./scripts/run_tests.sh
120
+ shell : bash
95
121
96
122
- name : Run uninstall test
97
123
env :
98
124
RAILS_ENV : test
99
125
working-directory : redmine
100
126
run : ./scripts/run_uninstall_test.sh
127
+ shell : bash
0 commit comments