Skip to content

Fix: Versions + New Release #124

Fix: Versions + New Release

Fix: Versions + New Release #124

Workflow file for this run

name: Breeze CI
on:
push:
branches: [ main ]
pull_request:
branches: "*"
jobs:
check_format:
strategy:
fail-fast: false
matrix:
crystal_version:
- latest
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
with:
crystal: ${{ matrix.crystal_version }}
- name: Install shards
run: shards install
- name: Format
run: crystal tool format --check
- name: Crystal Ameba Linter
id: crystal-ameba
uses: crystal-ameba/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
specs:
strategy:
fail-fast: false
matrix:
crystal_version:
- 1.4.0
- latest
runs-on: ubuntu-latest
services:
postgres:
image: postgres:12-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/[email protected]
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
with:
crystal: ${{ matrix.crystal_version }}
- uses: actions/[email protected]
with:
node-version: "12.x"
- name: Cache node modules
uses: actions/[email protected]
env:
cache-name: cache-node-modules
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install shards
run: shards install
- name: Install Lucky CLI
run: |
crystal build lib/lucky_cli/src/lucky.cr --no-debug --release
cp lucky /usr/local/bin
- name: Run tests
run: crystal spec
env:
BREEZE_TEST_LOCATION: /home/runner/work/breeze/breeze
LUCKY_ENV: test