Add a JSON Schema for .ameba.yml
and a CLI tool for automatically generating it
#1354
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
types: [opened, synchronize, reopened] | |
schedule: | |
- cron: "0 3 * * 1" # Every monday at 3 AM | |
jobs: | |
check_json_schema: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set timezone to UTC | |
uses: szenius/[email protected] | |
- name: Install Crystal | |
uses: crystal-lang/install-crystal@v1 | |
- name: Download source | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: shards install | |
- name: Run schema builder | |
run: shards run schema | |
- name: Check for changes | |
run: git diff --exit-code || exit 1 | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
crystal: [latest, nightly] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set timezone to UTC | |
uses: szenius/[email protected] | |
- name: Install Crystal | |
uses: crystal-lang/install-crystal@v1 | |
with: | |
crystal: ${{ matrix.crystal }} | |
- name: Download source | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: shards install | |
- name: Install typos-cli | |
if: matrix.os == 'macos-latest' | |
run: brew install typos-cli | |
- name: Run specs | |
run: make spec | |
- name: Build ameba binary | |
run: make build | |
- name: Run ameba linter | |
run: make lint |