Skip to content

Commit

Permalink
Created CI (4)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Aug 3, 2023
1 parent 1fffbe1 commit 4b0cb62
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ jobs:
run: bundle exec rubocop

test:
name: Ruby ${{ matrix.ver }} on ${{ matrix.os }}
name: Ruby ${{ matrix.ruby_ver }} on ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ 'ubuntu-20.04' ]
os: [ 'ubuntu-20.04', macos-11.0 ]
ruby_ver: [ '3.0.6', '3.1.4', '3.2.2' ]
runs-on: ${{ matrix.os }}

Expand All @@ -73,3 +73,32 @@ jobs:

- name: Test
run: bundle exec rake

test-container:
name: Ruby on ${{ matrix.os }}
container:
image: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ 'alpine:3.16' ]
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Ruby
shell: bash
run: apk --no-cache --upgrade add ruby

- name: Install bundler
shell: bash
run: gem install bundler

- name: Install bundle
shell: bash
run: bundle install

- name: Test
run: bundle exec rake

0 comments on commit 4b0cb62

Please sign in to comment.