Skip to content

Commit

Permalink
Fix workflow file and move away from ameba action
Browse files Browse the repository at this point in the history
  • Loading branch information
stephendolan committed Mar 18, 2021
1 parent 2d7b4cc commit a53e28a
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 18 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/lucky.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lucky Jumpstart CI
name: Lucky

on:
push:
Expand All @@ -22,10 +22,24 @@ jobs:
- name: Format
run: crystal tool format --check

- name: Crystal Ameba Linter
uses: crystal-ameba/github-action@v0.2.7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Crystal cache
uses: actions/cache@v2.1.4
id: crystal-cache
with:
path: |
~/.cache/crystal
bin/ameba
lib
key: ${{ runner.os }}-crystal-${{ hashFiles('**/shard.lock') }}
restore-keys: |
${{ runner.os }}-crystal-
- name: Install shards
if: steps.crystal-cache.outputs.cache-hit != 'true'
run: shards check || shards install

- name: Run ameba linter
run: ./bin/ameba

RunSpecs:
runs-on: ubuntu-latest
Expand Down
18 changes: 11 additions & 7 deletions shard.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
version: 2.0
shards:
ameba:
git: https://github.com/crystal-ameba/ameba.git
version: 0.14.1+git.commit.6aaf398c4326c125874ba192da452270276bd184

any_hash:
git: https://github.com/Sija/any_hash.cr.git
version: 0.2.4
version: 0.2.5

avram:
git: https://github.com/luckyframework/avram.git
version: 0.19.0
version: 0.19.1

backtracer:
git: https://github.com/Sija/backtracer.cr.git
Expand All @@ -32,10 +36,6 @@ shards:
git: https://github.com/luckyframework/dexter.git
version: 0.3.2

dotenv:
git: https://github.com/gdotdesign/cr-dotenv.git
version: 0.7.0

exception_page:
git: https://github.com/crystal-loot/exception_page.git
version: 0.1.4
Expand All @@ -46,7 +46,7 @@ shards:

habitat:
git: https://github.com/luckyframework/habitat.git
version: 0.4.4
version: 0.4.6

lucky:
git: https://github.com/luckyframework/lucky.git
Expand All @@ -56,6 +56,10 @@ shards:
git: https://github.com/luckyframework/lucky_cli.git
version: 0.26.0

lucky_env:
git: https://github.com/luckyframework/lucky_env.git
version: 0.1.0

lucky_flow:
git: https://github.com/luckyframework/lucky_flow.git
version: 0.7.2
Expand Down
17 changes: 11 additions & 6 deletions shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,20 @@ targets:
crystal: 0.35.1

dependencies:
raven:
github: Sija/raven.cr
version: ~> 1.9.0
lucky:
github: luckyframework/lucky
version: ~> 0.26.0
dotenv:
github: gdotdesign/cr-dotenv
version: ~> 0.7.0
lucky_env:
github: luckyframework/lucky_env
version: ~> 0.1.0
raven:
github: Sija/raven.cr
version: ~> 1.9.0

development_dependencies:
ameba:
github: crystal-ameba/ameba
branch: master
lucky_flow:
github: luckyframework/lucky_flow
version: ~> 0.7.2

0 comments on commit a53e28a

Please sign in to comment.