Skip to content

removed lines 66 67 - warning is noisy and can be ignored #515

removed lines 66 67 - warning is noisy and can be ignored

removed lines 66 67 - warning is noisy and can be ignored #515

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- main
pull_request:
jobs:
CheckFormat:
if: github.repository != 'grepsedawk/sharded.cr'
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: oprypin/install-crystal@v1
with:
crystal: latest
- name: Format
run: crystal tool format --check
- name: Set up Crystal cache
uses: actions/[email protected]
id: crystal-cache
with:
path: |
~/.cache/crystal
bin/ameba
lib
key: ${{ runner.os }}-crystal-${{ hashFiles('**/shard.yml') }}
restore-keys: |
${{ runner.os }}-crystal-
- name: Install shards
if: steps.crystal-cache.outputs.cache-hit != 'true'
run: shards check || shards install --ignore-crystal-version
- name: Run ameba linter
run: ./bin/ameba
RunSpecs:
if: github.repository != 'grepsedawk/sharded.cr'
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
crystal_version:
- 1.8.2
- latest
experimental:
- false
steps:
- uses: actions/[email protected]
- run: |
cd spec
docker-compose up -d
sleep 30 # TODO: Wait for the container to be ready
- uses: oprypin/install-crystal@v1
with:
crystal: ${{ matrix.crystal_version }}
- name: Set up Crystal cache
uses: actions/[email protected]
id: crystal-cache
with:
path: |
~/.cache/crystal
bin/ameba
lib
key: ${{ runner.os }}-crystal-${{ matrix.crystal_version }}-${{ hashFiles('**/shard.yml') }}
restore-keys: |
${{ runner.os }}-crystal-
- name: Install shards
if: steps.crystal-cache.outputs.cache-hit != 'true'
run: shards check || shards install --ignore-crystal-version
- name: Create .env
run: touch .env
- name: Run tests
run: crystal spec || crystal spec || crystal spec