2021-06-13 02:43:35 +02:00
|
|
|
name: Crystal CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
2022-05-12 07:47:55 +02:00
|
|
|
paths-ignore:
|
|
|
|
- "*.md"
|
2021-06-13 02:43:35 +02:00
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
2022-05-12 07:47:55 +02:00
|
|
|
schedule:
|
|
|
|
- cron: "32 2 * * 2"
|
2021-06-13 02:43:35 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
container:
|
|
|
|
image: crystallang/crystal
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
|
|
run: shards install
|
|
|
|
- name: Run tests
|
|
|
|
run: crystal spec -Dpreview_mt --order random --error-on-warnings
|
2022-05-12 07:47:55 +02:00
|
|
|
# - name: Run bulid
|
|
|
|
# run: shards build -Dpreview_mt
|
2021-06-13 02:43:35 +02:00
|
|
|
- name: Run format
|
|
|
|
run: crystal tool format --check
|
|
|
|
|