Skip to content

Commit

Permalink
Clean up Github CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromedalbert committed Oct 28, 2024
1 parent 940af39 commit 8bdb814
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
34 changes: 16 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
name: Ruby
name: CI

on:
push:
branches:
- main

pull_request:
push:
branches: [main]

jobs:
build:
check:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- '3.3.5'

ruby-version: [3.3.5]
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run the default task
run: bundle exec rake
- name: Checkout code
uses: actions/checkout@v4

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

- name: Run the default task
run: bundle exec rake
5 changes: 4 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
require 'syntax_tree/rake_tasks'

RSpec::Core::RakeTask.new(:spec)
RuboCop::RakeTask.new
task default: %i[spec rubocop]
SyntaxTree::Rake::CheckTask.new

task default: %i[spec rubocop stree:check]

0 comments on commit 8bdb814

Please sign in to comment.