Skip to content

Commit

Permalink
Added GitHub CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kojix2 committed Feb 13, 2024
1 parent 06253e3 commit 8ead40b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: test

on:
push:
pull_request:
schedule:
- cron: "51 3 * * 6" # Runs at 03:51, only on Saturday
jobs:
build:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: ["ubuntu", "macos"]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: crystal-lang/install-crystal@v1
with:
crystal: latest
- name: Install dependencies
run: shards install --without-development --release
- name: Run specs
run: crystal spec
9 changes: 4 additions & 5 deletions spec/htsgrid_spec.cr
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
require "./spec_helper"
require "../src/htsgrid/version"

describe Htsgrid do
# TODO: Write tests

it "works" do
false.should eq(true)
describe "HTSGrid::VERSION" do
it "should be a string" do
HTSGrid::VERSION.should be_a(String)
end
end
1 change: 0 additions & 1 deletion spec/spec_helper.cr
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
require "spec"
require "../src/htsgrid"

0 comments on commit 8ead40b

Please sign in to comment.