Skip to content

Commit

Permalink
Merge pull request #5 from geocrystal/crystal-ci
Browse files Browse the repository at this point in the history
change Crystal CI
  • Loading branch information
mamantoha authored Apr 3, 2024
2 parents 9f712fc + 88f2aa3 commit e7c8d98
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/crystal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,50 +2,50 @@ name: Crystal CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 0 * * *'

jobs:
check_format:
runs-on: ubuntu-latest
container:
image: crystallang/crystal
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: shards install --ignore-crystal-version
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
- name: Check out repository code
uses: actions/checkout@v4
- name: Check format
run: crystal tool format --check

check_ameba:
runs-on: ubuntu-latest
container:
image: crystallang/crystal
steps:
- uses: actions/checkout@v4
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
- name: Check out repository code
uses: actions/checkout@v4
- name: Install dependencies
run: shards install --ignore-crystal-version
- name: Check ameba
run: shards install
- name: Crystal Ameba Linter
run: ./bin/ameba
test_latest:
runs-on: ubuntu-latest
container:
image: crystallang/crystal
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: shards install --ignore-crystal-version
- name: Run tests
run: crystal spec
test_nightly:
runs-on: ubuntu-latest
container:
image: crystallang/crystal:nightly

test:
strategy:
fail-fast: false
matrix:
include:
- {os: ubuntu-latest, crystal: latest}
- {os: ubuntu-latest, crystal: nightly}
- {os: macos-14}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
with:
crystal: ${{ matrix.crystal }}
- name: Check out repository code
uses: actions/checkout@v4
- name: Install dependencies
run: shards install --ignore-crystal-version
run: shards install --skip-postinstall --skip-executables
- name: Run tests
run: crystal spec

0 comments on commit e7c8d98

Please sign in to comment.