From 05ee21675f51db657f067ee3b47e8f2918d0303f Mon Sep 17 00:00:00 2001 From: Cuong Tran Date: Thu, 26 Sep 2019 22:50:16 -0700 Subject: [PATCH] Integrate Github actions for CI (#619) --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/milestone.yml | 12 ++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/milestone.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..83d7433c1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI +on: [push] +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + ruby: + - 2.3.x + - 2.4.x + - 2.6.x + steps: + - name: Checkout + uses: actions/checkout@v1 + - name: Setup System + run: | + sudo apt-get install libsqlite3-dev + - name: Setup Ruby + uses: actions/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + - name: Bundle + run: | + gem update --system + gem update bundler + bundle install --jobs 4 --retry 3 + - name: Test + run: bundle exec rubocop && bundle exec rspec diff --git a/.github/workflows/milestone.yml b/.github/workflows/milestone.yml new file mode 100644 index 000000000..290677f56 --- /dev/null +++ b/.github/workflows/milestone.yml @@ -0,0 +1,12 @@ +on: milestone +name: On Milestone +jobs: + createReleaseNotes: + name: Create Release Notes + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Create Release Notes + uses: mmornati/release-notes-generator-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}