Skip to content

Commit

Permalink
Update CI pipeline. (#9)
Browse files Browse the repository at this point in the history
* Update/clean CI pipeline.
* Add windows-latest runner.
  • Loading branch information
iamazeem authored Apr 7, 2023
1 parent 3ece76f commit dc162b5
Showing 1 changed file with 11 additions and 18 deletions.
29 changes: 11 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,36 @@ name: ci

on:
push:
paths-ignore:
- '**.md'
- '.rubocop.yml'
branches: [main]
paths-ignore: ['**.md', '.rubocop.yml']
pull_request:
paths-ignore:
- '**.md'
- '.rubocop.yml'
branches: [main]
types: [opened, synchronize, reopened]
paths-ignore: ['**.md', '.rubocop.yml']

jobs:
run-tests:
name: Run tests
build-and-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
ruby-version: ['2.6', '2.7']

runs-on: ${{ matrix.os }}

steps:
- name: Checkout
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v3

- name: Set up Ruby
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true

- name: Install protoc
uses: arduino/setup-protoc@master
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Bundle install
run: |
gem install bundler
bundle install --jobs 4 --retry 3
- name: Tests
- name: Run tests
run: bundle exec rake test

0 comments on commit dc162b5

Please sign in to comment.