-
-
Notifications
You must be signed in to change notification settings - Fork 6
54 lines (44 loc) · 1.27 KB
/
Copy pathspecs_mssql_rails80.yml
File metadata and controls
54 lines (44 loc) · 1.27 KB
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
---
name: Specs MSSQL 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: mssql
RAILS_VERSION: 8.0
RUBY_VERSION: ${{ matrix.ruby }}
services:
mssql:
image: mcr.microsoft.com/mssql/server:2022-latest
env:
ACCEPT_EULA: 'Y'
SA_PASSWORD: Pa%%w0rd
options: >-
--health-cmd "/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P 'Pa%%w0rd' -C -Q 'SELECT 1' || /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'Pa%%w0rd' -Q 'SELECT 1'"
--health-interval 10s
--health-timeout 5s
--health-retries 10
ports:
- 1433:1433
steps:
- name: Install dependencies
run: sudo apt-get update -qq && sudo apt-get install -yqq freetds-dev freetds-bin 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: Database setup
run: bin/rails db:create db:migrate db:test:prepare
- name: Run tests
run: bin/rspec --profile