-
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.
Merge pull request #11 from imdrasil/feature/add-crystal-1-support
Add crystal 1.0.0 support
- Loading branch information
Showing
9 changed files
with
72 additions
and
55 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 | ||
|
||
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 | ||
run: shards install | ||
|
||
- name: Run linter | ||
run: ./bin/ameba | ||
|
||
- name: Configure sysctl limits | ||
run: | | ||
sudo swapoff -a | ||
sudo sysctl -w vm.swappiness=1 | ||
sudo sysctl -w fs.file-max=262144 | ||
sudo sysctl -w vm.max_map_count=262144 | ||
- name: Runs Elasticsearch | ||
uses: elastic/elastic-github-actions/elasticsearch@master | ||
with: | ||
stack-version: 7.6.0 | ||
|
||
- name: Run migrations | ||
run: crystal sam.cr es:index:create_all | ||
|
||
- name: Run specs | ||
run: crystal spec |
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 |
---|---|---|
@@ -1,9 +1,6 @@ | ||
require "./src/hermes" | ||
require "./spec/config" | ||
require "sam" | ||
|
||
# Here you can define your tasks | ||
# desc "with description to be used by help command" | ||
# task "test" do | ||
# puts "ping" | ||
# end | ||
require "./src/sam" | ||
|
||
Sam.help |
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
name: hermes | ||
version: 0.3.0 | ||
version: 0.3.1 | ||
|
||
authors: | ||
- Roman Kalnytskyi <[email protected]> | ||
|
||
crystal: 0.35.1 | ||
crystal: ">= 0.35.1" | ||
|
||
license: MIT | ||
development_dependencies: | ||
sam: | ||
github: imdrasil/sam.cr | ||
version: "~> 0.3.0" | ||
version: "~> 0.4.1" | ||
ameba: | ||
github: crystal-ameba/ameba | ||
version: "= 0.12.1" | ||
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 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