-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (39 loc) · 1.12 KB
/
validation.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
name: validation
on: push
jobs:
test_ruby:
runs-on: ubuntu-latest
steps:
- name: Checkout Redmine
uses: actions/checkout@v4
with:
repository: redmine/redmine
path: redmine
- name: Checkout Tracky
uses: actions/checkout@v4
with:
path: plugins/redmine_tracky
- name: Cache gems
uses: actions/cache@v3
with:
path: vendor/bundle
key: gems-${{ hashFiles('Gemfile.lock') }}
- name: Cache Node modules
uses: actions/cache@v3
with:
path: node_modules
key: npm-${{ hashFiles('plugins/redmine_tracky/assets.src/package-lock.json') }}
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1.2'
- name: Start MySQL
run: sudo service mysql start
- name: Setup Tracky
run: cd plugins/redmine_tracky && bin/setup
env:
GITHUB_ACTIONS: true
- name: Run linters
run: cd plugins/redmine_tracky && rake lint
- name: Run tests
run: cd plugins/redmine_tracky && rake test