forked from taylorfinnell/awscr-s3
-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (71 loc) · 1.95 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: CI
on: push
jobs:
review:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
crystal_version:
- 0.36.1
- latest
experimental: [false]
include:
- crystal_version: nightly
experimental: true
name: "Run analysis [crystal ${{matrix.crystal_version}}]"
continue-on-error: ${{ matrix.experimental }}
container:
image: crystallang/crystal:${{matrix.crystal_version}}
steps:
- name: "[Git] Checkout code"
uses: actions/checkout@v2
- name: "[Setup] Install dependencies"
env:
CRYSTAL_ENV: test
run: >-
CRYSTAL_WORKERS=$(nproc)
shards install
- name: "[Analysis] Run static analysis"
env:
CRYSTAL_ENV: test
run: >-
CRYSTAL_WORKERS=$(nproc)
./bin/ameba -c .ameba.yml
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
crystal_version:
- 0.36.1
- latest
experimental: [false]
include:
- crystal_version: nightly
experimental: true
name: "Run tests [crystal ${{matrix.crystal_version}}]"
continue-on-error: ${{ matrix.experimental }}
container:
image: crystallang/crystal:${{matrix.crystal_version}}
steps:
- name: "[Git] Checkout code"
uses: actions/checkout@v2
- name: "[Setup] Install dependencies"
env:
CRYSTAL_ENV: test
run: >-
CRYSTAL_WORKERS=$(nproc)
shards install
- name: "[Test] Run specs"
env:
CRYSTAL_ENV: test
run: >-
CRYSTAL_WORKERS=$(nproc)
crystal spec -v --error-trace --no-color
- name: "[Test] Compile files with release flag"
env:
CRYSTAL_ENV: test
run: >-
CRYSTAL_WORKERS=$(nproc)
crystal build --release --stats --progress src/awscr-s3.cr