-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (39 loc) · 1.08 KB
/
tests.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
name: Tests
on:
push:
pull_request:
jobs:
test:
name: ruby-${{ matrix.ruby }}
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['2.7', '3.0', '3.1', '3.2', '3.3']
fail-fast: false
steps:
- name: Checkout redmine_plugin_kit
uses: actions/checkout@v4
with:
path: redmine_plugin_kit
- name: Update package archives
run: sudo apt-get update --yes --quiet
- name: Install package dependencies
run: >
sudo apt-get install --yes --quiet
build-essential
cmake
libicu-dev
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Install Ruby dependencies
working-directory: redmine_plugin_kit
run: |
bundle install --jobs=4 --retry=3
- name: Run tests
env:
RAILS_ENV: test
working-directory: redmine_plugin_kit
run: rake test RUBYOPT="-W0"