diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..dc580da --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI +on: + push: + workflow_dispatch: + schedule: + - cron: "0 6 * * 1" +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + crystal: + - latest + - nightly + - 1.0.0 + runs-on: ${{ matrix.os }} + container: crystallang/crystal:${{ matrix.crystal }}-alpine + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + run: shards install --ignore-crystal-version + - name: Lint + run: ./bin/ameba + - name: Format + run: crystal tool format --check + - name: Run tests + run: crystal spec -v --error-trace diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 35e9cca..0000000 --- a/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: crystal -install: - - shards install -script: - - crystal spec diff --git a/README.md b/README.md index 3c0adb0..a3595f2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Crystal Lang S2 Cells -[![Build Status](https://travis-ci.com/spider-gazelle/s2_cells.svg?branch=master)](https://travis-ci.com/github/spider-gazelle/s2_cells) +[![CI](https://github.com/spider-gazelle/s2_cells/actions/workflows/ci.yml/badge.svg)](https://github.com/spider-gazelle/s2_cells/actions/workflows/ci.yml) Maps Lat Lon coordinates to S2 Cells. Useful for things like storing points [in InfluxDB](https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/experimental/geo/#geo-schema-requirements)