Skip to content

Commit

Permalink
Merge pull request #79 from Sija/ci-switch-to-github-actions
Browse files Browse the repository at this point in the history
Switch CI to GitHub Actions
  • Loading branch information
Sija authored Jan 10, 2021
2 parents cfe72fc + bf34698 commit bc0fda1
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 23 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI

on:
push:
pull_request:
branches:
# Branches from forks have the form 'user:branch-name' so we only run
# this job on pull_request events for branches that look like fork
# branches. Without this we would end up running this job twice for non
# forked PRs, once for the push and then once for opening the PR.
- "**:**"
schedule:
- cron: "0 3 * * 1" # Every monday at 3 AM

jobs:
build:
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
env:
SHARDS_OPTS: --ignore-crystal-version

- name: Run specs
run: |
crystal spec
crystal spec --no-debug
crystal spec --release
crystal spec --release --no-debug
- name: Build crash handler
run: |
shards build crash_handler
shards build crash_handler --release
- name: Check formatting
run: crystal tool format --check

- name: Run ameba linter
run: bin/ameba
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</h1>

<p align="center">
<a href="https://travis-ci.com/Sija/raven.cr"><img src="https://travis-ci.com/Sija/raven.cr.svg?branch=master" alt="Build Status" /></a>
<a href="https://github.com/Sija/raven.cr/actions?query=workflow%3ACI"><img src="https://github.com/Sija/raven.cr/workflows/CI/badge.svg" alt="Build Status" /></a>
<a href="https://www.codacy.com/app/Sija/raven.cr"><img src="https://api.codacy.com/project/badge/Grade/32cb8814a14d4a6cbe39d6768142c59b" alt="Codacy Badge" /></a>
<a href="https://github.com/Sija/raven.cr/releases"><img src="https://img.shields.io/github/release/Sija/raven.cr.svg" alt="Releases" /></a>
<a href="https://github.com/Sija/raven.cr/blob/master/LICENSE"><img src="https://img.shields.io/github/license/Sija/raven.cr.svg" alt="License" /></a>
Expand Down

0 comments on commit bc0fda1

Please sign in to comment.