Skip to content

Commit

Permalink
💚 Use GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
unhappychoice committed Aug 9, 2023
1 parent 43001d5 commit e0f95ee
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 65 deletions.
61 changes: 0 additions & 61 deletions .circleci/config.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: test

on: [push]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
- name: Install bundler
run: gem install bundler
- name: Install dependencies
run: bundle install --jobs 4
- name: Run lint
run: bundle exec rubocop lib
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['3.2.2', '3.1.4', '3.0.6', '2.7.8', '2.6.10']
steps:
- uses: actions/checkout@master
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install bundler
run: gem install bundler
- name: Install dependencies
run: bundle install --jobs 4
- name: Run test
env:
RAILS_ENV: test
COVERAGE: true
CODECOV_TOKEN: d9091f65-2e14-4029-86e6-f6ec9c59ecec
run: bundle exec rspec
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.7.2
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ GEM
rb-inotify (~> 0.9, >= 0.9.10)
lumberjack (1.2.9)
method_source (1.0.0)
mini_portile2 (2.6.1)
mini_portile2 (2.8.4)
nenv (0.3.0)
nokogiri (1.12.5)
mini_portile2 (~> 2.6.1)
nokogiri (1.15.3)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
notiffany (0.1.3)
nenv (~> 0.1)
Expand Down Expand Up @@ -118,4 +118,4 @@ DEPENDENCIES
simplecov

BUNDLED WITH
2.0.2
2.1.4

0 comments on commit e0f95ee

Please sign in to comment.