From 2d46beea5debefbb836a7e148a8e24452608471b Mon Sep 17 00:00:00 2001 From: Sijawusz Pur Rahnama Date: Mon, 15 Mar 2021 06:47:14 +0100 Subject: [PATCH] Migrate from Travis CI to GitHub Actions (#603) --- .github/workflows/ci.yml | 41 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 14 -------------- README.md | 2 +- 3 files changed, 42 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..983dc67 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,41 @@ +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 + env: + SHARDS_OPTS: --ignore-crystal-version + + - name: Run specs + run: | + crystal spec + crystal spec --release --no-debug + + - name: Check formatting + run: crystal tool format --check + + - name: Run ameba linter + run: bin/ameba diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9883f5e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: crystal -crystal: - - latest - - nightly - -script: - - crystal spec - - crystal spec --release --no-debug - - crystal tool format --check - - bin/ameba src - -matrix: - allow_failures: - - crystal: nightly diff --git a/README.md b/README.md index 068cc25..e86af15 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Lightning Fast, Super Simple web framework. -[![Build Status](https://travis-ci.org/kemalcr/kemal.svg?branch=master)](https://travis-ci.org/kemalcr/kemal) +[![CI](https://github.com/kemalcr/kemal/actions/workflows/ci.yml/badge.svg)](https://github.com/kemalcr/kemal/actions/workflows/ci.yml) [![Join the chat at https://gitter.im/sdogruyol/kemal](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/sdogruyol/kemal?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) # Super Simple ⚡️