Skip to content

Commit

Permalink
upgrade github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
einal3m committed Apr 21, 2024
1 parent af21bf9 commit 0278865
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,34 @@ name: Ruby

on:
push:
branches: [master]
branches: ["master"]
pull_request:
branches: [master]
branches: ["master"]

permissions:
contents: read

jobs:
unit-tests:
runs-on: ubuntu-latest
runs-on: "ubuntu-22.04"
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
with:
ruby-version: 3.2.3
bundler-cache: true
ruby-version: "3.2.3"
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bin/rails rspec:unit

rubocop:
runs-on: ubuntu-latest
runs-on: "ubuntu-22.04"
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
with:
ruby-version: 3.2.3
bundler-cache: true
ruby-version: "3.2.3"
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bin/rails rubocop

0 comments on commit 0278865

Please sign in to comment.