-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #611 from zmariscal/feature--add-trilogy-github-wo…
…rkflow Add trilogy GitHub workflow
- Loading branch information
Showing
5 changed files
with
49 additions
and
4 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
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
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
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
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,45 @@ | ||
name: trilogy | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
trilogy_test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
ruby: [2.7, "3.0", 3.1, 3.2] | ||
runs-on: ${{matrix.os}} | ||
services: | ||
mysql: | ||
image: mysql:5.7 | ||
ports: | ||
- 3306:3306 | ||
env: | ||
MYSQL_ROOT_PASSWORD: root | ||
MYSQL_USER: github | ||
MYSQL_PASSWORD: github | ||
MYSQL_DATABASE: composite_primary_keys_unittest | ||
options: >- | ||
--health-cmd "mysqladmin ping -h localhost" | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
env: | ||
BUNDLE_WITHOUT: "db2 oracle sqlserver sqlite postgresql" | ||
BUNDLE_JOBS: 4 | ||
BUNDLE_PATH: vendor/bundle | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{matrix.ruby}} | ||
bundler-cache: true | ||
- name: Setup database config | ||
run: cp test/connections/databases.ci.yml test/connections/databases.yml | ||
- name: Prepare databases | ||
run: bundle exec rake trilogy:rebuild_database | ||
env: | ||
MYSQL_ROOT_PASSWORD: root | ||
- name: Trilogy test | ||
run: bundle exec rake trilogy:test |