Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 71d1062

Browse files
committedApr 25, 2025·
feat: add new GitHub action workflow
1 parent 96509f7 commit 71d1062

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed
 

‎.github/workflows/dockerized-test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: dockerized-test
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ '*' ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
ruby_version: ['3.1', '3.2', '3.3']
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Set up ruby
19+
uses: ruby/setup-ruby@v1
20+
with:
21+
ruby-version: ${{ matrix.ruby_version }}
22+
- name: Build the lib
23+
run: make build
24+
- name: Build the image
25+
run: docker build . -t local/test -f Dockerfile.test --build-arg BASE_IMAGE=public.ecr.aws/lambda/ruby:${{ matrix.ruby_version }}

‎Dockerfile.test

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM public.ecr.aws/lambda/ruby:3.3
1+
ARG BASE_IMAGE
2+
FROM $BASE_IMAGE
23
ENV GEM_HOME=/var/runtime
34
RUN gem uninstall aws_lambda_ric --executables
45
ADD pkg /tmp/pkg

0 commit comments

Comments
 (0)
Please sign in to comment.