mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
Migrate continuous testing to GitHub Actions (#147)
* crystal tool format * Migrate continuous testing to GitHub Actions
This commit is contained in:
parent
0415deebbb
commit
52bd5b0a86
3 changed files with 34 additions and 8 deletions
33
.github/workflows/ci.yml
vendored
Normal file
33
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
branches: [master]
|
||||||
|
schedule:
|
||||||
|
- cron: '0 6 * * 1' # Every monday 6 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: oprypin/install-crystal@v1
|
||||||
|
with:
|
||||||
|
crystal: ${{ matrix.crystal }}
|
||||||
|
|
||||||
|
- name: Download source
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Run specs
|
||||||
|
run: crystal spec
|
||||||
|
|
||||||
|
- name: Check formatting
|
||||||
|
run: crystal tool format; git diff --exit-code
|
||||||
|
if: matrix.crystal != 'nightly' && matrix.os == 'ubuntu-latest'
|
|
@ -1,7 +0,0 @@
|
||||||
language: crystal
|
|
||||||
crystal:
|
|
||||||
- latest
|
|
||||||
- nightly
|
|
||||||
script:
|
|
||||||
- crystal spec
|
|
||||||
- crystal tool format --check
|
|
|
@ -1,4 +1,4 @@
|
||||||
[![Build Status](https://travis-ci.org/crystal-lang/crystal-db.svg?branch=master)](https://travis-ci.org/crystal-lang/crystal-db)
|
[![Build Status](https://github.com/crystal-lang/crystal-db/workflows/CI/badge.svg)](https://github.com/crystal-lang/crystal-db/actions?query=workflow%3ACI+event%3Apush+branch%3Amaster)
|
||||||
|
|
||||||
# crystal-db
|
# crystal-db
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue