mirror of
https://gitea.invidious.io/iv-org/shard-radix.git
synced 2024-08-15 00:43:21 +00:00
Use GitHub Actions for CI
Runs against Ubunut/macOS for latest version and introduce weekly on schedule to run it against nightly versions.
This commit is contained in:
parent
b7fcf6fcb0
commit
9a1b56c020
2 changed files with 49 additions and 0 deletions
23
.github/workflows/ci-nightly.yml
vendored
Normal file
23
.github/workflows/ci-nightly.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
name: CI (nightly)
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: '0 6 * * 1' # Every monday 6 AM
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- {os: ubuntu-latest, crystal: nightly}
|
||||
- {os: macos-latest, crystal: nightly}
|
||||
runs-on: ${{matrix.os}}
|
||||
steps:
|
||||
- uses: oprypin/install-crystal@v1
|
||||
with:
|
||||
crystal: ${{matrix.crystal}}
|
||||
- uses: actions/checkout@v2
|
||||
- run: crystal spec --error-on-warnings --error-trace
|
26
.github/workflows/ci.yml
vendored
Normal file
26
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- {os: ubuntu-latest, crystal: latest}
|
||||
- {os: macos-latest, crystal: latest}
|
||||
runs-on: ${{matrix.os}}
|
||||
steps:
|
||||
- uses: oprypin/install-crystal@v1
|
||||
with:
|
||||
crystal: ${{matrix.crystal}}
|
||||
- uses: actions/checkout@v2
|
||||
- run: crystal spec
|
||||
- run: crystal tool format --check src spec
|
Loading…
Reference in a new issue