-
Notifications
You must be signed in to change notification settings - Fork 1
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 #8 from imdrasil/feature/add-crystal-1-support
Add crystal 1 support
- Loading branch information
Showing
11 changed files
with
72 additions
and
34 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,47 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
schedule: | ||
- cron: "0 7 * * 1" | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
|
||
runs-on: ubuntu-latest | ||
|
||
env: | ||
DB_USER: dbuser | ||
DB_PASSWORD: dbpassword | ||
|
||
steps: | ||
- name: Install Crystal | ||
uses: oprypin/install-crystal@v1 | ||
|
||
- name: Donwload sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Check formatting | ||
run: crystal tool format --check | ||
|
||
- name: Install dependencies | ||
# TODO: remove --ignore-crystal-version once all packages will be updated | ||
run: shards install --ignore-crystal-version | ||
|
||
- name: Run linter | ||
run: ./bin/ameba | ||
|
||
- name: Install PostgreSQL | ||
uses: harmon758/postgresql-action@v1 | ||
with: | ||
postgresql version: '9.5' | ||
postgresql user: ${{ env.DB_USER }} | ||
postgresql password: ${{ env.DB_PASSWORD }} | ||
|
||
- name: Run migrations | ||
run: crystal sam.cr db:create @ db:migrate | ||
|
||
- name: Run specs | ||
run: make seq |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
require "sam" | ||
require "./spec/support/config" | ||
require "./spec/support/models" | ||
require "./spec/support/migrations/*" | ||
|
||
load_dependencies "jennifer" | ||
|
||
Sam.help |
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 |
---|---|---|
@@ -1,19 +1,25 @@ | ||
name: factory | ||
version: 0.1.4 | ||
version: 0.1.5 | ||
|
||
authors: | ||
- Roman Kalnytskyi <moranibaca@gmail.com> | ||
|
||
crystal: 0.26.1 | ||
crystal: ">= 0.34.0" | ||
|
||
license: MIT | ||
|
||
development_dependencies: | ||
minitest: | ||
github: ysbaddaden/minitest.cr | ||
version: "~> 0.4.0" | ||
version: "~> 1.0.0" | ||
sam: | ||
github: imdrasil/sam.cr | ||
version: "~> 0.4.1" | ||
jennifer: | ||
github: imdrasil/jennifer.cr | ||
branch: "master" | ||
pg: | ||
github: will/crystal-pg | ||
ameba: | ||
github: crystal-ameba/ameba | ||
version: "= 0.14.3" |
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 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module Factory | ||
VERSION = "0.1.4" | ||
VERSION = "0.1.5" | ||
end |