Add a deploy config for dokku #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: | |
image: crystallang/crystal:latest | |
steps: | |
- name: Download source | |
uses: actions/checkout@v4 | |
- name: Install Dependencies | |
run: | | |
apt-get update | |
apt-get install -y libsqlite3-dev | |
- name: Cache shards | |
uses: actions/cache@v4 | |
with: | |
path: lib | |
key: ${{ runner.os }}-shards-${{ hashFiles('**/shard.lock') }} | |
- name: Install shards | |
run: shards check || shards install | |
- name: Run tests | |
run: KEMAL_ENV=test crystal spec |