Skip to content

Include GitHub action on push and pr #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/test-on-push-and-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: test-on-push-and-pr

on:
push:
branches: [ main ]
pull_request:
branches: [ '*' ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Run 'pr' target
run: make pr
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ test-integ: setup-codebuild-agent
build:
rake build

.PHONY: pr
pr: init test-unit test-smoke

define HELP_MESSAGE

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

endef
1 change: 1 addition & 0 deletions aws_lambda_ric.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'bundler', '>= 2.0'
spec.add_development_dependency 'minitest', '~> 5.0'
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'activesupport', '~> 6.0.1'
end
2 changes: 1 addition & 1 deletion test/integration/codebuild-local/codebuild_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ then
exit 1
fi

docker_command="docker run -it "
docker_command="docker run "
if isOSWindows
then
docker_command+="-v //var/run/docker.sock:/var/run/docker.sock -e "
Expand Down
3 changes: 0 additions & 3 deletions test/unit/resources/runtime_handlers/Gemfile

This file was deleted.