Skip to content

Commit

Permalink
Add CI for Ruby 3.2 (#102)
Browse files Browse the repository at this point in the history
* Update actions/checkout

Signed-off-by: Daijiro Fukuda <fukuda@clear-code.com>

* Add Ruby3.2 CI

Signed-off-by: Daijiro Fukuda <fukuda@clear-code.com>

---------

Signed-off-by: Daijiro Fukuda <fukuda@clear-code.com>
Co-authored-by: Ed Robinson <edward-robinson@cookpad.com>
  • Loading branch information
daipom and errm authored Oct 16, 2023
1 parent 67000f6 commit 55a87fa
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 8 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v2
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
Expand All @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v2
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
Expand All @@ -38,7 +38,7 @@ jobs:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v2
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
Expand All @@ -48,11 +48,25 @@ jobs:
uses: docker/build-push-action@v2
with:
file: test/docker/Dockerfile.tdagent-almalinux
ruby32:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
file: test/docker/Dockerfile.ruby32
rubocop:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v2
uses: actions/checkout@v3
-
uses: ruby/setup-ruby@v1
with:
Expand Down
22 changes: 18 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v2
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
Expand All @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v2
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
Expand All @@ -36,7 +36,7 @@ jobs:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v2
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
Expand All @@ -46,11 +46,25 @@ jobs:
uses: docker/build-push-action@v2
with:
file: test/docker/Dockerfile.tdagent-almalinux
ruby32:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
file: test/docker/Dockerfile.ruby32
rubocop:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v2
uses: actions/checkout@v3
-
uses: ruby/setup-ruby@v1
with:
Expand Down
7 changes: 7 additions & 0 deletions test/docker/Dockerfile.ruby32
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ruby:3.2

WORKDIR /usr/local/src

COPY . .
RUN bundle install -j4 -r3
RUN bundle exec rake test TESTOPTS="-v"

0 comments on commit 55a87fa

Please sign in to comment.