Skip to content

Commit ecd18e6

Browse files
authored
Enable tests on GitHub Actions (#502)
* Initial commit * Update wkhtmltopdf setup * Build against multiple Rails versions * Add Ruby 2.5
1 parent 4a9c9bc commit ecd18e6

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/test.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Test workflow
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: [ubuntu-latest]
11+
ruby: [2.5, 2.6, 2.7]
12+
rails: ['~> 4.1', '~> 5.2', '~> 6.0']
13+
runs-on: ${{ matrix.os }}
14+
env:
15+
RAILS_VERSION: ${{ matrix.rails }}
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: ruby/setup-ruby@v1
19+
with:
20+
ruby-version: ${{ matrix.ruby }}
21+
bundler-cache: true
22+
23+
- name: Setup wkhtmltopdf
24+
run: |
25+
sudo apt-get install -y xfonts-base xfonts-75dpi
26+
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.deb
27+
sudo dpkg -i wkhtmltox_0.12.6-1.bionic_amd64.deb
28+
29+
- name: Run tests
30+
run: bundle exec rake

0 commit comments

Comments
 (0)