diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8e991a1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI + +on: + push: + pull_request: + branches: [master] + schedule: + - cron: '0 6 * * 6' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Install Crystal + uses: oprypin/install-crystal@v1 + - name: Download source + uses: actions/checkout@v2 + - name: Install dependencies + run: shards install + - name: Build + run: make + - name: Check formatting + run: crystal tool format --check