-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from jiikko/ci
Use github actions
- Loading branch information
Showing
8 changed files
with
88 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Ruby | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
strategy: | ||
matrix: | ||
ruby-version: ['2.7', '3.0', '3.1'] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
bundler-cache: true | ||
- name: Install Redis | ||
run: sudo apt-get install -y redis-tools redis-server | ||
- name: Verify that redis is up | ||
run: redis-cli ping | ||
- name: Run tests | ||
run: |- | ||
bundle exec rake |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM ruby:3.0 | ||
WORKDIR /app | ||
RUN apt-get update && apt-get install redis -y | ||
RUN bundle config set --global force_ruby_platform true | ||
RUN gem i bundler | ||
COPY . . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,53 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
resque_unit_without_mock (0.1.0) | ||
resque_unit_without_mock (0.1.1) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
minitest (5.11.3) | ||
connection_pool (2.3.0) | ||
minitest (5.16.3) | ||
minitest-hooks (1.5.0) | ||
minitest (> 5.3) | ||
mono_logger (1.1.0) | ||
multi_json (1.13.1) | ||
mustermann (1.0.3) | ||
rack (2.0.6) | ||
rack-protection (2.0.5) | ||
mono_logger (1.1.1) | ||
multi_json (1.15.0) | ||
mustermann (3.0.0) | ||
ruby2_keywords (~> 0.0.1) | ||
rack (2.2.4) | ||
rack-protection (3.0.3) | ||
rack | ||
rake (10.5.0) | ||
redis (4.1.0) | ||
redis-namespace (1.6.0) | ||
redis (>= 3.0.4) | ||
resque (2.0.0) | ||
rake (13.0.6) | ||
redis (5.0.5) | ||
redis-client (>= 0.9.0) | ||
redis-client (0.11.2) | ||
connection_pool | ||
redis-namespace (1.9.0) | ||
redis (>= 4) | ||
resque (2.4.0) | ||
mono_logger (~> 1.0) | ||
multi_json (~> 1.0) | ||
redis-namespace (~> 1.6) | ||
sinatra (>= 0.9.2) | ||
vegas (~> 0.1.2) | ||
sinatra (2.0.5) | ||
mustermann (~> 1.0) | ||
rack (~> 2.0) | ||
rack-protection (= 2.0.5) | ||
ruby2_keywords (0.0.5) | ||
sinatra (3.0.3) | ||
mustermann (~> 3.0) | ||
rack (~> 2.2, >= 2.2.4) | ||
rack-protection (= 3.0.3) | ||
tilt (~> 2.0) | ||
tilt (2.0.9) | ||
vegas (0.1.11) | ||
rack (>= 1.0.0) | ||
tilt (2.0.11) | ||
|
||
PLATFORMS | ||
ruby | ||
x86_64-linux | ||
|
||
DEPENDENCIES | ||
bundler (~> 1.17) | ||
minitest (~> 5.0) | ||
bundler | ||
minitest | ||
minitest-hooks | ||
rake (~> 10.0) | ||
rake | ||
resque | ||
resque_unit_without_mock! | ||
|
||
BUNDLED WITH | ||
1.17.1 | ||
2.3.26 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: '3' | ||
services: | ||
app: | ||
build: . | ||
volumes: | ||
- './:/app:delegated' | ||
- bundle_path:/bundle | ||
environment: | ||
- BUNDLE_PATH=/bundle | ||
volumes: | ||
bundle_path: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters