mirror of
https://gitea.invidious.io/iv-org/shard-crystal-sqlite3.git
synced 2024-08-15 00:53:26 +00:00
Migrate CI to GitHub Actions (#78)
This commit is contained in:
parent
2849fe15c8
commit
a9baaec310
2 changed files with 35 additions and 2 deletions
35
.github/workflows/ci.yml
vendored
Normal file
35
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
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]
|
||||
crystal: [1.0.0, 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@v2
|
||||
|
||||
- name: Install shards
|
||||
run: shards install
|
||||
|
||||
- name: Run specs
|
||||
run: crystal spec
|
||||
|
||||
- name: Check formatting
|
||||
run: crystal tool format; git diff --exit-code
|
||||
if: matrix.crystal == 'latest' && matrix.os == 'ubuntu-latest'
|
|
@ -1,2 +0,0 @@
|
|||
language: crystal
|
||||
sudo: false
|
Loading…
Reference in a new issue