mirror of
https://gitea.invidious.io/iv-org/shard-backtracer.cr.git
synced 2024-08-15 00:53:13 +00:00
Migrate from Travis CI to GitHub Actions
This commit is contained in:
parent
5649a04adf
commit
14f5d77cdd
3 changed files with 47 additions and 21 deletions
46
.github/workflows/ci.yml
vendored
Normal file
46
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,46 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
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: oprypin/install-crystal@v1
|
||||
with:
|
||||
crystal: ${{ matrix.crystal }}
|
||||
|
||||
- name: Download source
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install dependencies
|
||||
run: shards install
|
||||
env:
|
||||
SHARDS_OPTS: --ignore-crystal-version
|
||||
|
||||
- name: Run specs
|
||||
run: |
|
||||
crystal spec
|
||||
crystal spec --no-debug
|
||||
|
||||
- name: Run specs (release)
|
||||
run: |
|
||||
crystal spec --release
|
||||
crystal spec --release --no-debug
|
||||
|
||||
- name: Check formatting
|
||||
run: crystal tool format --check
|
||||
|
||||
- name: Run ameba linter
|
||||
run: bin/ameba
|
20
.travis.yml
20
.travis.yml
|
@ -1,20 +0,0 @@
|
|||
language: crystal
|
||||
|
||||
crystal:
|
||||
- latest
|
||||
- nightly
|
||||
|
||||
jobs:
|
||||
allow_failures:
|
||||
- crystal: nightly
|
||||
|
||||
install:
|
||||
- shards install
|
||||
|
||||
script:
|
||||
- crystal spec
|
||||
- crystal spec --no-debug
|
||||
- crystal spec --release
|
||||
- crystal spec --release --no-debug
|
||||
- crystal tool format --check
|
||||
- bin/ameba
|
|
@ -1,4 +1,4 @@
|
|||
# backtracer.cr [![Build Status](https://travis-ci.com/Sija/backtracer.cr.svg?branch=master)](https://travis-ci.com/Sija/backtracer.cr) [![Releases](https://img.shields.io/github/release/Sija/backtracer.cr.svg)](https://github.com/Sija/backtracer.cr/releases) [![License](https://img.shields.io/github/license/Sija/backtracer.cr.svg)](https://github.com/Sija/backtracer.cr/blob/master/LICENSE)
|
||||
# backtracer.cr [![CI](https://github.com/Sija/backtracer.cr/actions/workflows/ci.yml/badge.svg)](https://github.com/Sija/backtracer.cr/actions/workflows/ci.yml) [![Releases](https://img.shields.io/github/release/Sija/backtracer.cr.svg)](https://github.com/Sija/backtracer.cr/releases) [![License](https://img.shields.io/github/license/Sija/backtracer.cr.svg)](https://github.com/Sija/backtracer.cr/blob/master/LICENSE)
|
||||
|
||||
Crystal shard aiming to assist with parsing backtraces into a structured form.
|
||||
|
||||
|
|
Loading…
Reference in a new issue