Skip to content

Commit

Permalink
Update tests and linting workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysonvirissimo committed Aug 11, 2024
1 parent ca08760 commit 2f97e48
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ on:
jobs:
unit_tests:
name: Unit Tests
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
if: ${{ ! contains(github.event.head_commit.message, '[ci skip]') }}
strategy:
fail-fast: false
matrix:
os:
- macos
- ubuntu
ruby:
- 3.0
- 3.1
- 3.2
- 3.3
- '3.0'
- '3.1'
- '3.2'
- '3.3'
allow_failures:
- false
env:
Expand All @@ -32,7 +32,7 @@ jobs:
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -41,20 +41,20 @@ jobs:
- name: Test
run: bundle exec rake spec || $ALLOW_FAILURES


lint:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
ruby-version: '3.2'
bundler-cache: true
- name: Install dependencies
run: |
bundle install
run: bundle install
- name: Lint Ruby
run: bundle exec standardrb
- name: Lint JSON
Expand Down

0 comments on commit 2f97e48

Please sign in to comment.