-
-
Notifications
You must be signed in to change notification settings - Fork 79
33 lines (28 loc) · 935 Bytes
/
tests.yml
File metadata and controls
33 lines (28 loc) · 935 Bytes
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
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install native dependencies
run: sudo apt-get update && sudo apt-get install -y libmagickwand-dev
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: 14.15.0
- name: Compile JS
run: RAILS_ENV=test bundle exec rake assets:precompile
- name: Run tests
run: RAILS_ENV=test bundle exec rails test