Skip to content

Bump actions/checkout from 3 to 4 #18

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #18

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- main
pull_request:
jobs:
CheckFormat:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oprypin/install-crystal@v1
with:
crystal: latest
- name: Format
run: crystal tool format --check
- name: Set up Crystal cache
uses: actions/cache@v3
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:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
crystal_version:
- 1.2.0
- latest
experimental:
- false
include:
- crystal_version: nightly
experimental: true
steps:
- uses: actions/checkout@v4
- uses: oprypin/install-crystal@v1
with:
crystal: ${{ matrix.crystal_version }}
- name: Set up Crystal cache
uses: actions/cache@v3
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: Run tests
run: crystal spec