forked from redbooth/departure
-
Notifications
You must be signed in to change notification settings - Fork 54
45 lines (43 loc) · 1.18 KB
/
test.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
name: Test
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
ruby:
- 2.5
- 2.6
- 2.7
rails:
- 5.2.0
- 6.0.0
- 6.1.0
include:
- ruby: 2.4
rails: 5.2.0
- ruby: 2.7
rails: 7.0.1
- ruby: 3.0
rails: 6.1.0
env:
PERCONA_DB_USER: root
PERCONA_DB_PASSWORD: root
RAILS_VERSION: "~> ${{ matrix.rails }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: "Add Percona GPG key"
run: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 9334A25F8507EFA5
- name: "Add Percona APT repository"
run: echo "deb http://repo.percona.com/apt `lsb_release -cs` main" | sudo tee -a /etc/apt/sources.list
- run: sudo apt-get update -qq
- run: sudo apt-get install percona-toolkit
- name: Start MySQL server
run: sudo systemctl start mysql.service
- run: bin/setup
- run: bundle exec rake