Skip to content

Commit d3c25a0

Browse files
committed
Auto-run tests on commits (CI)
1 parent 92013f8 commit d3c25a0

3 files changed

Lines changed: 38 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
ruby-version: ['3.0', '3.1', '3.2', '3.3']
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
lfs: true
20+
21+
- name: Checkout LFS files
22+
run: git lfs pull
23+
24+
- name: Set up Ruby
25+
uses: ruby/setup-ruby@v1
26+
with:
27+
ruby-version: ${{ matrix.ruby-version }}
28+
bundler-cache: true
29+
30+
- name: Run tests
31+
run: bundle exec rake test

Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
# Specify your gem's dependencies in tcd.gemspec
6+
gemspec

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# TCD - Tidal Constituent Database Reader
1+
# TCD - Tidal Constituent Database Reader [![Tests](https://github.com/jpr5/tcd/actions/workflows/test.yml/badge.svg)](https://github.com/jpr5/tcd/actions/workflows/test.yml)
22

33
A pure Ruby gem for reading TCD (Tidal Constituent Database) files used by [XTide](https://flaterco.com/xtide/) for tide predictions.
44

0 commit comments

Comments
 (0)