-
Notifications
You must be signed in to change notification settings - Fork 62
35 lines (33 loc) · 776 Bytes
/
ci.yml
File metadata and controls
35 lines (33 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Lucky Website CI
on:
push:
branches: [ main ]
pull_request:
branches: "*"
jobs:
check_format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: crystal-lang/install-crystal@v1
with:
crystal: latest
- name: Install shards
run: shards install
- name: Format
run: crystal tool format --check
- name: Lint
run: ./bin/ameba
specs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: crystal-lang/install-crystal@v1
with:
crystal: latest
- name: Install shards
run: shards install
- name: Setup Lucky
run: crystal ./script/setup.cr
- name: Run tests
run: crystal spec