Skip to content

Commit

Permalink
Merge pull request #113 from holiday-jp/actions
Browse files Browse the repository at this point in the history
Use GitHub Actions
  • Loading branch information
k1LoW authored Dec 5, 2020
2 parents 52d1902 + dee94de commit a07e433
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 14 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: test

on:
push:
schedule:
- cron: '0 0 * * *'

jobs:
job-test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Ruby
uses: actions/setup-ruby@v1
with:
go-version: '2.7'

- name: Check out source code
uses: actions/checkout@v2

- name: Setup
run: bundle install

- name: Run test
run: bundle exec rake spec
env:
# No OAuth2 Client ID / IP range limited
GOOGLE_CALENDAR_API_KEY: AIzaSyBua5ystvigElyCGBeJQ-lvXnLAal5k_jw
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# holiday_jp [![Build Status](https://travis-ci.org/holiday-jp/holiday_jp.svg?branch=master)](https://travis-ci.org/holiday-jp/holiday_jp) [![GitHub release](https://img.shields.io/github/release/holiday-jp/holiday_jp.svg)](https://github.com/holiday-jp/holiday_jp/releases)
# holiday_jp [![test](https://github.com/holiday-jp/holiday_jp/workflows/test/badge.svg)](https://github.com/holiday-jp/holiday_jp/actions) [![GitHub release](https://img.shields.io/github/release/holiday-jp/holiday_jp.svg)](https://github.com/holiday-jp/holiday_jp/releases)

Japanese holiday datasets

Expand Down
3 changes: 2 additions & 1 deletion spec/syukujitsu_csv_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
require 'csv'
require 'open-uri'
require 'date'
require 'uri'

context 'Check holidays.yml by syukujitsu.csv' do
before do
@holidays = YAML.load_file(File.expand_path('../../holidays.yml', __FILE__))
csv_url = 'https://www8.cao.go.jp/chosei/shukujitsu/syukujitsu.csv'
csv = open(csv_url).read
csv = URI.open(csv_url).read
@cholidays = CSV.parse(csv, headers: true, encoding: 'Shift_JIS')
end

Expand Down

0 comments on commit a07e433

Please sign in to comment.