Skip to content

Commit

Permalink
Update CI pipeline. (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamazeem authored Apr 7, 2023
1 parent 2557576 commit 4a2f9b0
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,31 @@ 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:
ci:
build-and-test:
strategy:
matrix:
os: [ubuntu-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: 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 4a2f9b0

Please sign in to comment.