-
-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (33 loc) · 868 Bytes
/
Copy pathspecs_mysql_rails80.yml
File metadata and controls
43 lines (33 loc) · 868 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
34
35
36
37
38
39
40
41
42
43
---
name: Specs MySQL Rails 8.0
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['3.4', '4.0']
env:
DB_TEST: mysql
RAILS_VERSION: 8.0
RUBY_VERSION: ${{ matrix.ruby }}
steps:
- name: Install dependencies
run: sudo apt-get update -qq && sudo apt-get install -yqq libvips-dev
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Start database service
run: sudo /etc/init.d/mysql start
- name: Database setup
run: bin/rails db:create db:migrate db:test:prepare
- name: Run tests
run: bin/rspec --profile