Skip to content

Commit 1e90743

Browse files
ctranvfonic
authored andcommitted
Integrate Github actions for CI (ctran#619)
1 parent 65dbdce commit 1e90743

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
on: [push]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
ruby:
9+
- 2.3.x
10+
- 2.4.x
11+
- 2.6.x
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v1
15+
- name: Setup System
16+
run: |
17+
sudo apt-get install libsqlite3-dev
18+
- name: Setup Ruby
19+
uses: actions/setup-ruby@v1
20+
with:
21+
ruby-version: ${{ matrix.ruby }}
22+
- name: Bundle
23+
run: |
24+
gem update --system
25+
gem update bundler
26+
bundle install --jobs 4 --retry 3
27+
- name: Test
28+
run: bundle exec rubocop && bundle exec rspec

.github/workflows/milestone.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
on: milestone
2+
name: On Milestone
3+
jobs:
4+
createReleaseNotes:
5+
name: Create Release Notes
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@master
9+
- name: Create Release Notes
10+
uses: mmornati/release-notes-generator-action@master
11+
env:
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)