-
-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (35 loc) · 1.16 KB
/
ci.yml
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
36
37
38
39
40
41
42
43
44
name: CI
on:
push:
branches: [ main, master, develop ]
pull_request:
branches: [ main, master, develop ]
jobs:
build:
runs-on: ubuntu-18.04
if: "!contains(github.event.head_commit.message, '[skip ci]')"
container:
image: crystallang/crystal:1.0.0
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Install shards
run: shards install
- name: Ameba
run: ./bin/ameba
- name: Test
run: crystal spec
- name: Check the code format
run: crystal tool format --check ./src ./spec
- name: Check FIXME/TODO
run: |
! grep --color -Enr --include="*.cr" 'FIXME|TODO' src
! grep --color -Enr --include="*.cr" 'FIXME|TODO' spec
- name: "Check 'spec focus: true'"
run: |
! grep --color -Enr --include="*.cr" 'focus: true do' spec
! grep --color -Enr --include="*.cr" 'ftest_' spec
- name: Check long lines
run: |
! grep --color -Enr --include="*.cr" '.{121}' src
! grep --color -Enr --include="*.cr" '.{121}' spec