Skip to content

Commit

Permalink
Simplify CI flow
Browse files Browse the repository at this point in the history
  • Loading branch information
kigster committed Mar 16, 2024
1 parent 041609e commit 6b30327
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 151 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# .github/workflows/main.yaml
name: "TicketBooth CI: Lint"

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
main:
name: RuboCop
runs-on: ubuntu-latest
steps:
- run: sudo apt-get update -yqq
- run: sudo apt-get install -yqq netcat libpq-dev

- uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.3'
bundler-cache: true

- name: RuboCop
run: bin/rubocop --parallel
22 changes: 2 additions & 20 deletions .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# .github/workflows/main.yaml
name: "TicketBooth CI: rspec"
name: "TicketBooth CI: RSpec"

on:
push:
Expand All @@ -9,7 +9,7 @@ on:

jobs:
main:
name: CI
name: RSpec
runs-on: ubuntu-latest

# If you need DB like MySQL then define service below.
Expand Down Expand Up @@ -64,21 +64,3 @@ jobs:
- name: "Run Rspec"
run: bundle exec rspec --format documentation

- name: "Run Rubocop"
run: bundle exec rubocop


lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.3'
bundler-cache: true

- name: RuboCop
run: bin/rubocop --parallel
59 changes: 0 additions & 59 deletions .github/workflows/ruby.yml

This file was deleted.

72 changes: 0 additions & 72 deletions .github/workflows/rubyonrails.yml

This file was deleted.

0 comments on commit 6b30327

Please sign in to comment.