diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2dc0988 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + schedule: + - cron: '0 12 * * *' + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: deps + run: | + curl -sL "https://keybase.io/crystal/pgp_keys.asc" | sudo apt-key add - + echo "deb https://dist.crystal-lang.org/apt crystal main" | sudo tee /etc/apt/sources.list.d/crystal.list + sudo apt-get update + sudo apt install -y crystal libqrencode-dev + - name: lint + run: crystal tool format --check src/ spec/ + - name: build + run: shards build --production + - name: test + run: crystal spec diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e16f8cc..0000000 --- a/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: crystal -before_install: - - sudo apt-get install libqrencode-dev