diff --git a/.github/workflows/ci-nightly.yml b/.github/workflows/ci-nightly.yml new file mode 100644 index 0000000..c1b5ec8 --- /dev/null +++ b/.github/workflows/ci-nightly.yml @@ -0,0 +1,23 @@ +name: CI (nightly) + +on: + push: + pull_request: + schedule: + - cron: '0 6 * * 1' # Every monday 6 AM + +jobs: + build: + strategy: + fail-fast: false + matrix: + include: + - {os: ubuntu-latest, crystal: nightly} + - {os: macos-latest, crystal: nightly} + runs-on: ${{matrix.os}} + steps: + - uses: oprypin/install-crystal@v1 + with: + crystal: ${{matrix.crystal}} + - uses: actions/checkout@v2 + - run: crystal spec --error-on-warnings --error-trace diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..caf9f2c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + branches: + - '*' + +jobs: + build: + strategy: + fail-fast: false + matrix: + include: + - {os: ubuntu-latest, crystal: latest} + - {os: macos-latest, crystal: latest} + runs-on: ${{matrix.os}} + steps: + - uses: oprypin/install-crystal@v1 + with: + crystal: ${{matrix.crystal}} + - uses: actions/checkout@v2 + - run: crystal spec + - run: crystal tool format --check src spec diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 33cd297..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: crystal -crystal: - - latest - - nightly -matrix: - allow_failures: - - crystal: nightly - -notifications: - email: - on_success: never diff --git a/README.md b/README.md index 0fe266d..f1e8cf7 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,6 @@ [Radix tree](https://en.wikipedia.org/wiki/Radix_tree) implementation for Crystal language -[![Build Status](https://img.shields.io/travis/luislavena/radix/master.svg)](https://travis-ci.org/luislavena/radix) [![Latest Release](https://img.shields.io/github/release/luislavena/radix.svg)](https://github.com/luislavena/radix/releases) ## Installation