Skip to content

Commit 77aef76

Browse files
stefanbotezStefan Botez
and
Stefan Botez
authored
Include GitHub action on push and pr (#5)
Co-authored-by: Stefan Botez <[email protected]>
1 parent c4aabfa commit 77aef76

File tree

5 files changed

+26
-4
lines changed

5 files changed

+26
-4
lines changed
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: test-on-push-and-pr
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ '*' ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up ruby
16+
uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: 2.7
19+
- name: Run 'pr' target
20+
run: make pr

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ test-integ: setup-codebuild-agent
2727
build:
2828
rake build
2929

30+
.PHONY: pr
31+
pr: init test-unit test-smoke
32+
3033
define HELP_MESSAGE
3134

3235
Usage: $ make [TARGETS]
@@ -39,5 +42,6 @@ TARGETS
3942
test-integ Run Integration tests.
4043
test-unit Run Unit Tests.
4144
test-smoke Run Sanity/Smoke tests.
45+
pr Perform all checks before submitting a Pull Request.
4246

4347
endef

aws_lambda_ric.gemspec

+1
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ Gem::Specification.new do |spec|
3737
spec.add_development_dependency 'bundler', '>= 2.0'
3838
spec.add_development_dependency 'minitest', '~> 5.0'
3939
spec.add_development_dependency 'rake', '~> 13.0'
40+
spec.add_development_dependency 'activesupport', '~> 6.0.1'
4041
end

test/integration/codebuild-local/codebuild_build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ then
9595
exit 1
9696
fi
9797

98-
docker_command="docker run -it "
98+
docker_command="docker run "
9999
if isOSWindows
100100
then
101101
docker_command+="-v //var/run/docker.sock:/var/run/docker.sock -e "

test/unit/resources/runtime_handlers/Gemfile

-3
This file was deleted.

0 commit comments

Comments
 (0)