Skip to content

Commit

Permalink
Add CI workflow and badges to the README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Sija committed Aug 15, 2023
1 parent acac2f8 commit 862d5e1
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
push:
pull_request:
schedule:
- cron: "0 3 * * 1" # Every monday at 3 AM

jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
crystal: [latest, nightly]
runs-on: ${{ matrix.os }}

steps:
- name: Install Crystal
uses: oprypin/install-crystal@v1
with:
crystal: ${{ matrix.crystal }}

- name: Download source
uses: actions/checkout@v2

- name: Install dependencies
run: shards install

- name: Run specs
run: crystal spec

- name: Check formatting
run: crystal tool format --check

- name: Run ameba linter
run: bin/ameba
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# JSONL

[![CI](https://github.com/Sija/jsonl.cr/actions/workflows/ci.yml/badge.svg)](https://github.com/Sija/jsonl.cr/actions/workflows/ci.yml) [![Releases](https://img.shields.io/github/release/Sija/jsonl.cr.svg)](https://github.com/Sija/jsonl.cr/releases) [![License](https://img.shields.io/github/license/Sija/jsonl.cr.svg)](https://github.com/Sija/jsonl.cr/blob/master/LICENSE)

JSONL is a module for handling [JSONL](http://jsonlines.org) (JSON Lines) parsing.

## Installation
Expand Down

0 comments on commit 862d5e1

Please sign in to comment.