Skip to content

Commit 79c42f5

Browse files
authored
use github actions for CI instead of travis (#23)
* use github actions for CI instead of travis
1 parent 18bd694 commit 79c42f5

4 files changed

Lines changed: 76 additions & 12 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: 不具合の報告
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug / 不具合の説明**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce / 再現手順**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior / 期待した動作**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots / スクリーンショット**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Environment / 動作環境**
27+
- OS:
28+
- Browser:
29+
- tDiary Version:
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: bundler
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
time: '20:00'
8+
open-pull-requests-limit: 10

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: ubuntu
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
name: build (${{ matrix.ruby }}/${{ matrix.test_mode }})
8+
strategy:
9+
matrix:
10+
ruby: [ '3.0', 2.7, 2.6 ]
11+
test_mode: [ rack, gem ]
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Ruby
16+
uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: ${{ matrix.ruby }}
19+
- uses: niden/actions-memcached@v7
20+
- name: Install dependencies
21+
run: |
22+
sudo apt-get update && sudo apt-get -y install libidn11-dev
23+
echo 'gemspec' > Gemfile.local
24+
gem update bundler --no-document
25+
bundle install --without server --jobs=3 --retry=3
26+
npm install
27+
- name: Run test
28+
run: bundle exec rake spec
29+
env:
30+
TEST_MODE: ${{ matrix.test_mode }}

.travis.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)