-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* master: Refresh dependencies and revise CI matrix 0.5.0: Ability to ignore columns from a model (#17) Add ability to ignore columns from a model (#17) Enhance CI matrix to include optional head versions Migrate from Travis CI to Github Actions Fix loading of database.yml for tests in newer versions of Ruby Add missing `end` to the README example (#18) [ci skip] 0.4.0: Ignore generated database columns (#16) Ignore virtual columns in insert statements (#16) Fix README typo (#14)
- Loading branch information
Showing
22 changed files
with
158 additions
and
212 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,79 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
tags-ignore: | ||
- 'v*' | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
name: Ruby ${{ matrix.ruby }}, ActiveRecord ${{ matrix.activerecord }}, ${{ matrix.database }} | ||
continue-on-error: ${{ matrix.ruby == 'head' }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- ruby: "head" | ||
activerecord: "head" | ||
database: sqlite | ||
- ruby: "3.3" | ||
activerecord: "7.1" | ||
database: postgresql | ||
- ruby: "3.3" | ||
activerecord: "7.1" | ||
database: mysql | ||
- ruby: "3.3" | ||
activerecord: "7.1" | ||
database: sqlite | ||
- ruby: "3.2" | ||
activerecord: "7.0" | ||
database: sqlite | ||
- ruby: "3.1" | ||
activerecord: "6.1" | ||
database: sqlite | ||
- ruby: "3.0" | ||
activerecord: "6.0" | ||
database: sqlite | ||
|
||
runs-on: ubuntu-latest | ||
|
||
services: | ||
postgres: | ||
image: postgres:16 | ||
env: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
ports: | ||
- 5432:5432 | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
mysql: | ||
image: mysql:8.4 | ||
env: | ||
MYSQL_ALLOW_EMPTY_PASSWORD: yes | ||
MYSQL_DATABASE: evil_seed_test | ||
ports: | ||
- 3306:3306 | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
|
||
env: | ||
CI: true | ||
ACTIVERECORD_VERSION: "${{ matrix.activerecord }}" | ||
DB: "${{ matrix.database }}" | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- name: Run tests | ||
run: bundle exec rake |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.