-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (33 loc) · 1.05 KB
/
ci.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
name: CI
on:
push:
branches: [ '*' ]
jobs:
ci-rails-app:
runs-on: ubuntu-20.04
strategy:
matrix:
ruby-version: ['2.6.10']
env:
RAILS_ENV: test
NOKOGIRI_USE_SYSTEM_LIBRARIES: true
steps:
- uses: actions/checkout@v3
- name: Install libxslt for nokogiri gem (required for version < 1.11)
run: sudo apt-get install -y libxml2-dev libxslt-dev
- name: Add --no-document option to .gemrc file to speed up bundle install
run: "echo 'gem: --no-document' > ~/.gemrc"
- name: Set up Ruby
uses: ruby/[email protected]
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'adopt-hotspot'
java-version: '8'
- name: Set up default config files
run: bundle exec rake hyacinth:setup:config_files
- name: Run CI task
run: bundle exec rake hyacinth:ci