-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8b875f1
commit 5c4ef8f
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
name: Specs Rails 7.0 MSSQL | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
ruby: ['3.0', '3.1', '3.2'] | ||
gemfile: ['rails_7_0_mssql'] | ||
|
||
env: | ||
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile | ||
DB_TEST: mssql | ||
MSSQL_DB_HOST: 127.0.0.1 | ||
MSSQL_DB_USERNAME: sa | ||
MSSQL_DB_PASSWORD: Pa%%w0rd | ||
RAILS: '7.0' | ||
|
||
services: | ||
postgres: | ||
image: mcr.microsoft.com/mssql/server:2022-latest | ||
env: | ||
ACCEPT_EULA: 'Y' | ||
SA_PASSWORD: Pa%%w0rd | ||
ports: | ||
- 1433:1433 | ||
|
||
steps: | ||
- 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: Create database | ||
run: bundle exec rails db:create | ||
|
||
- name: Apply migrations | ||
run: bundle exec rails db:migrate | ||
|
||
- name: Run tests | ||
run: bundle exec rspec --profile |