-
Notifications
You must be signed in to change notification settings - Fork 76
55 lines (52 loc) · 1.52 KB
/
linux-test.yaml
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
50
51
52
53
54
55
name: Testing on Ubuntu
on:
- push
- pull_request
jobs:
test:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
env:
DISPLAY: ":99.0"
strategy:
fail-fast: false
matrix:
ruby-version:
- 2.5
- 2.6
os: [ubuntu-latest]
experimental: [false]
include:
- ruby-version: 2.7
os: ubuntu-latest
experimental: true
- ruby-version: 3.0
os: ubuntu-latest
experimental: true
- ruby-version: head
os: ubuntu-latest
experimental: true
name: Unit testing with Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Use node 10
run: nvm install 10
shell: bash --login {0}
- uses: browser-actions/setup-chrome@latest
- name: Check Chrome version
run: chrome --version
- uses: nanasess/setup-chromedriver@master
- name: Check ChromeDriver version
run: chromedriver --version
- name: Install TD Agent
run: sudo sh -c 'curl -L https://toolbelt.treasuredata.com/sh/install-ubuntu-trusty-td-agent3.sh | sh'
- name: Use specific version of bundler
run: gem install bundler --version 1.17.3
- name: Setup rails
run: ./bin/setup
- name: Run tests
run: bundle exec rake test