-
Notifications
You must be signed in to change notification settings - Fork 29
71 lines (71 loc) · 2.21 KB
/
build.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: build
on: [push, pull_request]
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
jobs:
build:
runs-on: ubuntu-latest
# Supported Matrix:
# Redmine 5.0-stable: Ruby 2.7, 3.0, 3.1
# Redmine 5.1-stable: Ruby 2.7, 3.0, 3.1, 3.2
# Redmine 6.0-stable: Ruby 3.1, 3.2, 3.3
# Redmine master: Ruby 3.1, 3.2, 3.3
strategy:
matrix:
db: [sqlite3, mysql, postgres]
ruby_version: ["3.0", "3.1", "3.2", "3.3"]
redmine_version: [5.0-stable, 5.1-stable, 6.0-stable, master]
exclude:
- ruby_version: "3.2"
redmine_version: 5.0-stable
- ruby_version: "3.3"
redmine_version: 5.0-stable
- ruby_version: "3.3"
redmine_version: 5.1-stable
- ruby_version: "3.0"
redmine_version: 6.0-stable
- ruby_version: "3.0"
redmine_version: master
services:
mysql:
image: mysql:5.7
options: --health-cmd "mysqladmin ping -h localhost" --health-interval 20s --health-timeout 10s --health-retries 10
env:
MYSQL_ROOT_PASSWORD: dbpassword
postgres:
image: postgres
env:
POSTGRES_USER: root
POSTGRES_PASSWORD: dbpassword
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
container:
image: ruby:${{ matrix.ruby_version }}
env:
DB: ${{ matrix.db }}
DB_USERNAME: root
DB_PASSWORD: dbpassword
DB_HOST: ${{ matrix.db }}
REDMINE_VER: ${{ matrix.redmine_version }}
steps:
- uses: actions/checkout@v4
- name: Install
run: bash -x ./build-scripts/install.sh
- name: Build
run: bash -x ./build-scripts/build.sh
- name: Clean
run: bash -x ./build-scripts/cleanup.sh
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
- name: Slack Notification on Failure
uses: rtCamp/action-slack-notify@v2.0.2
if: failure()
env:
SLACK_CHANNEL: plugin-code_review
SLACK_TITLE: Test Failure
SLACK_COLOR: danger