Skip to content

Commit a53e28a

Browse files
committed
Fix workflow file and move away from ameba action
1 parent 2d7b4cc commit a53e28a

File tree

3 files changed

+41
-18
lines changed

3 files changed

+41
-18
lines changed

.github/workflows/lucky.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Lucky Jumpstart CI
1+
name: Lucky
22

33
on:
44
push:
@@ -22,10 +22,24 @@ jobs:
2222
- name: Format
2323
run: crystal tool format --check
2424

25-
- name: Crystal Ameba Linter
26-
uses: crystal-ameba/[email protected]
27-
env:
28-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
- name: Set up Crystal cache
26+
uses: actions/[email protected]
27+
id: crystal-cache
28+
with:
29+
path: |
30+
~/.cache/crystal
31+
bin/ameba
32+
lib
33+
key: ${{ runner.os }}-crystal-${{ hashFiles('**/shard.lock') }}
34+
restore-keys: |
35+
${{ runner.os }}-crystal-
36+
37+
- name: Install shards
38+
if: steps.crystal-cache.outputs.cache-hit != 'true'
39+
run: shards check || shards install
40+
41+
- name: Run ameba linter
42+
run: ./bin/ameba
2943

3044
RunSpecs:
3145
runs-on: ubuntu-latest

shard.lock

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
version: 2.0
22
shards:
3+
ameba:
4+
git: https://github.com/crystal-ameba/ameba.git
5+
version: 0.14.1+git.commit.6aaf398c4326c125874ba192da452270276bd184
6+
37
any_hash:
48
git: https://github.com/Sija/any_hash.cr.git
5-
version: 0.2.4
9+
version: 0.2.5
610

711
avram:
812
git: https://github.com/luckyframework/avram.git
9-
version: 0.19.0
13+
version: 0.19.1
1014

1115
backtracer:
1216
git: https://github.com/Sija/backtracer.cr.git
@@ -32,10 +36,6 @@ shards:
3236
git: https://github.com/luckyframework/dexter.git
3337
version: 0.3.2
3438

35-
dotenv:
36-
git: https://github.com/gdotdesign/cr-dotenv.git
37-
version: 0.7.0
38-
3939
exception_page:
4040
git: https://github.com/crystal-loot/exception_page.git
4141
version: 0.1.4
@@ -46,7 +46,7 @@ shards:
4646

4747
habitat:
4848
git: https://github.com/luckyframework/habitat.git
49-
version: 0.4.4
49+
version: 0.4.6
5050

5151
lucky:
5252
git: https://github.com/luckyframework/lucky.git
@@ -56,6 +56,10 @@ shards:
5656
git: https://github.com/luckyframework/lucky_cli.git
5757
version: 0.26.0
5858

59+
lucky_env:
60+
git: https://github.com/luckyframework/lucky_env.git
61+
version: 0.1.0
62+
5963
lucky_flow:
6064
git: https://github.com/luckyframework/lucky_flow.git
6165
version: 0.7.2

shard.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,20 @@ targets:
1111
crystal: 0.35.1
1212

1313
dependencies:
14-
raven:
15-
github: Sija/raven.cr
16-
version: ~> 1.9.0
1714
lucky:
1815
github: luckyframework/lucky
1916
version: ~> 0.26.0
20-
dotenv:
21-
github: gdotdesign/cr-dotenv
22-
version: ~> 0.7.0
17+
lucky_env:
18+
github: luckyframework/lucky_env
19+
version: ~> 0.1.0
20+
raven:
21+
github: Sija/raven.cr
22+
version: ~> 1.9.0
23+
24+
development_dependencies:
25+
ameba:
26+
github: crystal-ameba/ameba
27+
branch: master
2328
lucky_flow:
2429
github: luckyframework/lucky_flow
2530
version: ~> 0.7.2

0 commit comments

Comments
 (0)