-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI workflow and badges to the
README.md
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters