mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
39 lines
787 B
YAML
39 lines
787 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
schedule:
|
|
- cron: "0 3 * * 1" # Every monday at 3 AM
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest]
|
|
crystal: [latest, nightly]
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: Install Crystal
|
|
uses: crystal-lang/install-crystal@v1
|
|
with:
|
|
crystal: ${{ matrix.crystal }}
|
|
|
|
- name: Download source
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install dependencies
|
|
run: shards install
|
|
|
|
- name: Run specs
|
|
run: crystal spec
|
|
|
|
- name: Build ameba binary
|
|
run: shards build -Dpreview_mt
|
|
|
|
- name: Run ameba linter
|
|
run: bin/ameba
|