Invidious is an alternative front-end to YouTube
Add nightly crystal to CI matrix (#2264)
Caspian Baskaef5df36a8afb
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 99aac794..f98fe098 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -1,6 +1,8 @@name: Invidious CIon:+ schedule:+ - cron: "0 0 * * *" # Every day at 00:00push:branches:- "master"@@ -23,32 +25,47 @@ on:jobs:build:-+runs-on: ubuntu-latest-++ name: "build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }}"++ continue-on-error: ${{ !matrix.stable }}++ strategy:+ fail-fast: false+ matrix:+ stable: [true]+ crystal:+ - 1.0.0+ - 1.1.0+ include:+ - crystal: nightly+ stable: false+steps:- uses: actions/checkout@v2-+- name: Install Crystaluses: oprypin/[email protected]with:- crystal: 1.0.0-+ crystal: ${{ matrix.crystal }}+- name: Cache Shardsuses: actions/cache@v2with:path: ./libkey: shards-${{ hashFiles('shard.lock') }}-+- name: Install Shardsrun: |if ! shards check; thenshards installfi-+- name: Run testsrun: crystal spec-+- name: Run lintrun: |if ! crystal tool format --check; then@@ -56,20 +73,20 @@ jobs:git diffexit 1fi-+- name: Buildrun: crystal build --warnings all --error-on-warnings --error-trace src/invidious.cr-+build-docker:-+runs-on: ubuntu-latest-+steps:- uses: actions/checkout@v2-+- name: Build Dockerrun: docker-compose up -d-+- name: Test Dockerrun: while curl -Isf http://localhost:3000; do sleep 1; done